fix: force CGO
Some checks failed
Build and Push Docker Images / build-and-push-backend (push) Failing after 13s
Build and Push Docker Images / build-and-push-frontend (push) Successful in 8s

This commit is contained in:
2026-01-31 01:30:43 +01:00
parent 48f4423986
commit 9896850b49

View File

@@ -13,7 +13,7 @@ COPY . .
# Build the application # Build the application
# CGO_ENABLED=0 is important for a clean static build for Alpine # CGO_ENABLED=0 is important for a clean static build for Alpine
# -o main specifies the output file name # -o main specifies the output file name
RUN go build -o main . RUN CGO_ENABLED=1 go build -o main .
# Stage 2: Create the final lightweight image # Stage 2: Create the final lightweight image
FROM alpine:latest FROM alpine:latest