From 102bfbc6dfbc7c88ce86429dc98ea58ae4d44cc5 Mon Sep 17 00:00:00 2001 From: cmondragon Date: Mon, 19 Aug 2024 12:13:48 -0400 Subject: [PATCH] update Dockerfile --- Dockerfile | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index d26a90b..fa70957 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,18 +5,14 @@ ARG TARGETARCH WORKDIR /workspace # Copy the Go Modules manifests -COPY go.mod go.mod +COPY go.mod go.mod ./ COPY go.sum go.sum # cache deps before building and copying source so that we don't need to re-download as much # and so that source changes don't invalidate our downloaded layer RUN go mod download -# Copy the go source -COPY cmd/main.go cmd/main.go -COPY api/ api/ -COPY internal/controller/ internal/controller/ -COPY cloud/ cloud/ -COPY util/ util/ +# Copy the sources +COPY ./ ./ # Build # the GOARCH has not a default value to allow the binary be built according to the host where the command