From 859aa34eac451274b4d9e18f48e3aa8c9f1c8c5b Mon Sep 17 00:00:00 2001 From: Niklas Date: Fri, 8 Jan 2021 19:13:57 +0100 Subject: [PATCH] added dockerfile --- Dockerfile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..a2bde02 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,16 @@ +FROM golang:alpine AS build + +WORKDIR /build + +COPY go.mod . +COPY go.sum . +COPY *.go ./ + +RUN go build -o cool-dns . + +FROM alpine:latest +WORKDIR /app + +COPY --from=build /build/cool-dns . + +ENTRYPOINT ["/app/cool-dns"]