Repository navigation
[Feature Request]: Staged build to decrease image size #2492
LuisPeregrina
started this conversation in
Feature requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
What needs to be done?
Build by stages, copy the outputs to a slimmer image. See https://docs.docker.com/build/building/multi-stage/
What problem does this solve?
8.2 GB image uncompressed
Target users/beneficiaries
No response
Current alternatives/workarounds
No response
Proposed approach
what you want is in first stage get all the dev tools, build, then the output is copied to another stage that doent have the build tools.
All reactions