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"]