dnscontrol/Dockerfile

15 lines
388 B
Text
Raw Normal View History

FROM golang:1.10-alpine AS build-env
2017-09-13 02:06:44 +08:00
WORKDIR /go/src/github.com/StackExchange/dnscontrol
ADD . .
2017-09-18 21:44:24 +08:00
RUN apk update && apk add git
RUN go run build/build.go -os=linux
RUN cp dnscontrol-Linux /go/bin/dnscontrol
2017-09-13 02:06:44 +08:00
RUN dnscontrol version
2017-09-18 21:44:24 +08:00
FROM alpine
RUN apk add --no-cache ca-certificates
2017-09-13 02:06:44 +08:00
COPY --from=build-env /go/bin/dnscontrol /usr/local/bin
WORKDIR /dns
2017-09-18 21:44:24 +08:00
RUN dnscontrol version
CMD dnscontrol