mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-11-10 17:26:10 +08:00
12 lines
290 B
Text
12 lines
290 B
Text
|
FROM golang:1.9 AS build-env
|
||
|
WORKDIR /go/src/github.com/StackExchange/dnscontrol
|
||
|
ADD . .
|
||
|
RUN go install .
|
||
|
RUN dnscontrol version
|
||
|
|
||
|
FROM ubuntu:xenial
|
||
|
COPY --from=build-env /go/bin/dnscontrol /usr/local/bin
|
||
|
WORKDIR /dns
|
||
|
RUN apt-get update
|
||
|
RUN apt-get install -y ca-certificates
|
||
|
CMD dnscontrol
|