Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Comments

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

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

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

Conversation

@gabe565
Copy link

@gabe565 gabe565 commented Jul 25, 2025
edited
Loading

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

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /