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

fix(docker): reduce binary size + speed up build #492

Merged
merged 2 commits into from
Jan 14, 2025
Merged

Conversation

corrieriluca
Copy link
Member

@corrieriluca corrieriluca commented Jan 13, 2025

  • Use -s -w to strip debug symbols. On Linux/ARM64 burrito binary goes from ~120MB to ~80MB.
  • Remove -a option to go build because it was rebuilding all the packages from scratch, thus not using the cache. This will speed up builds on local machines.

@codecov-commenter
Copy link

codecov-commenter commented Jan 13, 2025

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 50.04%. Comparing base (86c82f2) to head (b2ede63).
Report is 4 commits behind head on main.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #492   +/-   ##
=======================================
  Coverage   50.04%   50.04%           
=======================================
  Files          72       72           
  Lines        4806     4806           
=======================================
  Hits         2405     2405           
  Misses       2198     2198           
  Partials      203      203           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@corrieriluca corrieriluca changed the title fix(docker): reduce burrito binary size fix(docker): reduce binary size + speed up build Jan 13, 2025
@AlanLonguet AlanLonguet merged commit 9923d81 into main Jan 14, 2025
7 checks passed
@AlanLonguet AlanLonguet deleted the fix/binary-size branch January 14, 2025 11:16
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.

3 participants