Skip to content

chore(docker): strip debug information to shrink image size#477

Open
gabe565 wants to merge 1 commit intowillnorris:mainfrom
gabe565:shrink-image-size
Open

chore(docker): strip debug information to shrink image size#477
gabe565 wants to merge 1 commit intowillnorris:mainfrom
gabe565:shrink-image-size

Conversation

@gabe565
Copy link

@gabe565 gabe565 commented Jul 25, 2025

This PR adds -ldflags='-w -s' to the Dockerfile, which instructs the linker to strip debug information, resulting in a smaller binary size. On my machine, this shrinks the image by 17.4 MB, but each GOOS/GOARCH combo will differ slightly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant