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

Exclude all of go from runtime image #4

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ChausseBenjamin
Copy link

Your current image keeps all of go loaded in making it a pretty hefty image (850MB).
Might be better to compile your service to work standalone and include a single binary in the final image (7.5MB).

This also has the side effect of being more secure as if there were to be a vulnerability in the upstream go image, you wouldn't have it as you have no dependency other than you single binary.

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