Repository navigation
[Feature Request]: Staged build to decrease image size #2492
LuisPeregrina
started this conversation in
Feature requests
Replies: 1 comment
|
+1. Reading the current Dockerfile (4e4bab5), several things add size, some of which don't even need a multi-stage build. I haven't built it, so I can't say how much each one weighs:
Points 2 and 3 look like low-risk quick wins compared to a full restructure, but the maintainers would need to confirm the server never uses the non-Chromium browsers. |
0 replies
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