Skip to content

Commit

Permalink
build: strip debugging symbols for smaller binary
Browse files Browse the repository at this point in the history
  • Loading branch information
mahyarmirrashed committed Jan 6, 2025
1 parent 2955b77 commit 8c80f66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ RUN go mod download

COPY . .

RUN CGO_ENABLED=0 go build -o app
RUN CGO_ENABLED=0 go build -ldflags="-s -w" -o app

FROM scratch

Expand Down

0 comments on commit 8c80f66

Please sign in to comment.