Docker container now includes the convertzone utility (#570)

This commit is contained in:
Stefan Huber 2019-12-17 17:24:49 +01:00 committed by Tom Limoncelli
parent eed8e43fbd
commit f1572c4b11

View file

@ -5,10 +5,13 @@ RUN apk update && apk add git
RUN go run build/build.go -os=linux RUN go run build/build.go -os=linux
RUN cp dnscontrol-Linux /go/bin/dnscontrol RUN cp dnscontrol-Linux /go/bin/dnscontrol
RUN dnscontrol version RUN dnscontrol version
RUN go build -o cmd/convertzone/convertzone cmd/convertzone/main.go
RUN cp cmd/convertzone/convertzone /go/bin/convertzone
FROM alpine FROM alpine
RUN apk add --no-cache ca-certificates RUN apk add --no-cache ca-certificates
COPY --from=build-env /go/bin/dnscontrol /usr/local/bin COPY --from=build-env /go/bin/dnscontrol /usr/local/bin
COPY --from=build-env /go/bin/convertzone /usr/local/bin
WORKDIR /dns WORKDIR /dns
RUN dnscontrol version RUN dnscontrol version
CMD dnscontrol CMD dnscontrol