-
Notifications
You must be signed in to change notification settings - Fork 161
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
Cut down Docker image sizes #3916
Cut down Docker image sizes #3916
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a great spot. Thanks.
Looks like this is running into repo permissions issues. I will copy your branch into firedrakeproject and open my own PR. |
Thanks @connorjward! And yeah, I tried to copy some of the CI changes I saw in your yesterday's PR. |
I am happy with this. If you remove the CI-specific changes I will approve and merge this. Thanks again! |
6da57f5
to
bbb6079
Compare
Done! Thanks for looking into this so fast |
Btw @connorjward I just noticed that all subsequent images ( |
Yeah I wasn't sure why that happened but the changes you introduced were so minor I wasn't concerned. The CI demonstrated that |
Description
Currently unnecessary files are removed in a separate layer in
Dockerfile.firedrake-env
, which doesn't reduce the final image size. In this PR I removed them inside the build layer, so the image size is reduced by 3GB (from 6.58GB to 3.57GB).