From f497c96ad193c8a0d5498f46244491f95a0d6608 Mon Sep 17 00:00:00 2001 From: Niklas Date: Tue, 2 Feb 2021 00:52:33 +0100 Subject: [PATCH] updated Dockerfile to use new structure --- Dockerfile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index a2bde02..e5ffb2e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,15 +2,15 @@ FROM golang:alpine AS build WORKDIR /build -COPY go.mod . -COPY go.sum . -COPY *.go ./ +COPY [ "go.mod", "go.sum", "./"] +COPY internal ./internal +COPY cmd ./cmd -RUN go build -o cool-dns . +RUN go build -o cooldns cmd/cooldns.go FROM alpine:latest WORKDIR /app -COPY --from=build /build/cool-dns . +COPY --from=build /build/cooldns . -ENTRYPOINT ["/app/cool-dns"] +ENTRYPOINT ["/app/cooldns"]