improve go build time

This commit is contained in:
itfisher
2025-10-29 23:38:41 +08:00
parent 0842f9f498
commit 8551e01e39

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