2018-10-02 23:29:32 +09:00
|
|
|
FROM golang:1.10-alpine AS build-env
|
2017-09-12 14:06:44 -04:00
|
|
|
WORKDIR /go/src/github.com/StackExchange/dnscontrol
|
|
|
|
ADD . .
|
2017-09-18 09:44:24 -04:00
|
|
|
RUN apk update && apk add git
|
|
|
|
RUN go run build/build.go -os=linux
|
2017-09-15 10:22:08 -04:00
|
|
|
RUN cp dnscontrol-Linux /go/bin/dnscontrol
|
2017-09-12 14:06:44 -04:00
|
|
|
RUN dnscontrol version
|
|
|
|
|
2017-09-18 09:44:24 -04:00
|
|
|
FROM alpine
|
2017-09-26 17:02:01 +01:00
|
|
|
RUN apk add --no-cache ca-certificates
|
2017-09-12 14:06:44 -04:00
|
|
|
COPY --from=build-env /go/bin/dnscontrol /usr/local/bin
|
|
|
|
WORKDIR /dns
|
2017-09-18 09:44:24 -04:00
|
|
|
RUN dnscontrol version
|
2017-09-26 17:02:01 +01:00
|
|
|
CMD dnscontrol
|