This commit is contained in:
lubiana 2025-07-25 21:15:45 +02:00
parent 84ef53ae05
commit 21471c69ba
Signed by: lubiana
SSH key fingerprint: SHA256:vW1EA0fRR3Fw+dD/sM0K+x3Il2gSry6YRYHqOeQwrfk
6 changed files with 179 additions and 29 deletions

View file

@ -30,7 +30,7 @@ COPY . .
COPY --from=frontend-builder /app/dist /app/frontend/dist
# Build the binary with embedded static files
RUN CGO_ENABLED=1 GOOS=linux go build -a -installsuffix cgo -o gocheck .
RUN CGO_ENABLED=1 GOOS=linux go build -a -installsuffix cgo -ldflags="-s -w" -o gocheck .
# Stage 2: Create minimal runtime container
FROM alpine:latest