From 8d976dd2503a50e4b2843d5dde6fb21cce83aad8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mats=20T=C3=B6rnberg?= Date: Tue, 25 Nov 2025 19:44:47 +0100 Subject: [PATCH] no custom mounts --- Dockerfile | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2d591fa..a518e4c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -38,8 +38,7 @@ ENV CGO_ENABLED=0 GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH} # Dependency caching COPY go.mod go.sum ./ -RUN --mount=type=cache,target=/go/pkg/mod \ - go mod download +RUN go mod download # Copy full source (relay on .dockerignore to prune) COPY . . @@ -52,22 +51,19 @@ COPY . . # proto/*.proto # Build with minimal binary size and embedded metadata -RUN --mount=type=cache,target=/go/build-cache \ - go build -trimpath -ldflags="-s -w \ +RUN go build -trimpath -ldflags="-s -w \ -X main.Version=${VERSION} \ -X main.GitCommit=${GIT_COMMIT} \ -X main.BuildDate=${BUILD_DATE}" \ -o /out/go-cart-actor ./cmd/cart -RUN --mount=type=cache,target=/go/build-cache \ - go build -trimpath -ldflags="-s -w \ +RUN go build -trimpath -ldflags="-s -w \ -X main.Version=${VERSION} \ -X main.GitCommit=${GIT_COMMIT} \ -X main.BuildDate=${BUILD_DATE}" \ -o /out/go-cart-backoffice ./cmd/backoffice -RUN --mount=type=cache,target=/go/build-cache \ - go build -trimpath -ldflags="-s -w \ +RUN go build -trimpath -ldflags="-s -w \ -X main.Version=${VERSION} \ -X main.GitCommit=${GIT_COMMIT} \ -X main.BuildDate=${BUILD_DATE}" \