ajuste no drone
This commit is contained in:
parent
2eeb7e39d2
commit
5b9d36d760
1 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue