diff --git a/backend/Dockerfile b/backend/Dockerfile index b0df113..4575e55 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -30,9 +30,7 @@ COPY docs ./docs # - ldflags -s -w: Strip debug info (-4MB) # - trimpath: Remove local paths # - -a: Rebuild all packages -RUN --mount=type=cache,target=/go/pkg/mod \ - --mount=type=cache,target=/root/.cache/go-build \ - CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build \ +RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build \ -ldflags="-s -w -X main.Version=$(git describe --tags --always 2>/dev/null || echo 'dev')" \ -trimpath \ -o /app/main ./cmd/api