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

Make Docker images smaller by deleting pip cache #211

Merged
merged 4 commits into from
Feb 7, 2023
Merged

Conversation

bolasim
Copy link
Collaborator

@bolasim bolasim commented Feb 7, 2023

No description provided.

Copy link
Collaborator

@pankajroark pankajroark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm. Worth trying out the python requirement install flow for the live reloadable image, to see if removing pip cache has an adverse impact on that. It probably won't have a huge impact, so I'm reluctant to suggest optimizing that case.
Would be also good to know how much space this saves on the base images.

@bolasim
Copy link
Collaborator Author

bolasim commented Feb 7, 2023

This save 2GB for uncompressed disc for dreambooth training. I think it's worth merging:

$ docker images
REPOSITORY     TAG       IMAGE ID       CREATED          SIZE
custom-train   latest    03b8afef3e29   27 seconds ago   8.04GB
<none>         <none>    b07409d063ad   2 hours ago      10GB

@bolasim bolasim merged commit 1433036 into main Feb 7, 2023
@bolasim bolasim deleted the bola/smaller-images branch February 7, 2023 22:08
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.

None yet

2 participants