dnscontrol/Dockerfile

15 lines
387 B
Text
Raw Normal View History

2017-09-18 21:44:24 +08:00
FROM golang:1.9-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