feat: strip go executable for smaller size

This commit is contained in:
Stavros
2025-02-02 13:31:35 +02:00
parent 2c4f086008
commit c37f66abb9

View File

@@ -35,7 +35,7 @@ COPY ./cmd ./cmd
COPY ./internal ./internal
COPY --from=site-builder /site/dist ./internal/assets/dist
RUN CGO_ENABLED=0 go build
RUN CGO_ENABLED=0 go build -ldflags "-s -w"
# Runner
FROM alpine:3.21 AS runner