improve go build time

This commit is contained in:
itfisher
2025-10-29 23:38:41 +08:00
parent 3e02cacbe2
commit 9422c35f7b

View File

@@ -34,7 +34,7 @@ RUN go mod download
COPY . .
# Build the application
RUN CGO_ENABLED=1 GOOS=linux go build -a -installsuffix cgo -o nofx .
RUN CGO_ENABLED=1 GOOS=linux go build -trimpath -ldflags="-s -w" -o nofx .
# Frontend build stage
FROM node:18-alpine AS frontend-builder