Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strip Go binaries by default #103

Open
edmorley opened this issue Jun 9, 2023 · 0 comments
Open

Strip Go binaries by default #103

edmorley opened this issue Jun 9, 2023 · 0 comments

Comments

@edmorley
Copy link
Member

edmorley commented Jun 9, 2023

Reading https://honnef.co/articles/stripping-go-elf-binaries-is-safe/ suggests that stripping Go binaries is both safe and doesn't affect eg panic error messages.

As such, it seems like the buildpack could strip built binaries by default, to reduce the app image size?

(Whilst the overall app image size is likely dominated by the base stack image size - the base image is likely already present on remotes, so reducing the Go binary layer size will still have a reasonable impact on reducing bits over the wire. Plus I'm presuming smaller Go binaries may even boot faster?)

GUS-W-13567692.

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

No branches or pull requests

1 participant