Exclude all of go from runtime image #4

Open
ChausseBenjamin wants to merge 7 commits from ChausseBenjamin/main into main
ChausseBenjamin commented 2024-11-22 02:13:24 +01:00 (Migrated from github.com)

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.

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.
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin ChausseBenjamin/main:ChausseBenjamin/main
git checkout ChausseBenjamin/main
Sign in to join this conversation.
No description provided.