From 4488d3c041454db7ed2e64fac55dec4b16a0e4bc Mon Sep 17 00:00:00 2001 From: Craig Peterson Date: Tue, 12 Sep 2017 14:06:44 -0400 Subject: [PATCH] Add Dockerfile --- Dockerfile | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 000000000..9305c62e4 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +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 +RUN dnscontrol version +CMD dnscontrol \ No newline at end of file