Skip to content

Docker image size optimization #2012

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

Closed
AndreMiras opened this issue Oct 27, 2019 · 0 comments
Closed

Docker image size optimization #2012

AndreMiras opened this issue Oct 27, 2019 · 0 comments

Comments

@AndreMiras
Copy link
Member

AndreMiras commented Oct 27, 2019

Current docker compressed image size is 2G (4.26G uncompressed). Trying to optimize it would also benefit to #2009 as we may pull more often to it.
Squashing layers together and deleting cache files e.g. pip, apt, download archives should be a huge helper to begin with.
Edit:
Squashing layers and deleting cache files is mostly addressed in #2008
Another thing to look at is multi-stage build. We could for instance have a lighter image for the CI while still providing a complete image with all dependencies for development use.

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

No branches or pull requests

2 participants