shrink
This commit is contained in:
parent
84ef53ae05
commit
21471c69ba
6 changed files with 179 additions and 29 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue