mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-01-11 01:47:53 +08:00
Docker container now includes the convertzone utility (#570)
This commit is contained in:
parent
eed8e43fbd
commit
f1572c4b11
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue