From fdfbc93a360492b8e12de65512573558be1092e2 Mon Sep 17 00:00:00 2001 From: Marcus Bohessef Date: Tue, 6 Jan 2026 20:32:48 -0300 Subject: [PATCH] ajuste no drone --- backend/Dockerfile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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