ajuste no drone

This commit is contained in:
Marcus Bohessef 2026-01-06 23:59:29 -03:00
parent 2eeb7e39d2
commit 5b9d36d760

View file

@ -18,8 +18,11 @@ COPY . .
# PASSO 4: Build puro
# Sem o --mount para não dar erro, mas o Go 1.24 já é rápido por natureza.
# Adicione -gcflags="all=-N -l" para um build muito mais leve
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')" \
-p 2 \
-gcflags="all=-N -l" \
-ldflags="-s -w" \
-trimpath \
-o /app/main ./cmd/api