-
Notifications
You must be signed in to change notification settings - Fork 26
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
Decreasing Docker image size by cleaning yum cache? #65
Comments
👍 @JulianHn: thanks for looking into that. Do you want to open a PR? |
@joshmoore Sure. What is the verdict on performing a |
As in ome/omero-web-docker#67 (comment), I'd tend to favor an automated rebuild in order to keep the relationship to upstream images rather than creating our open "custom" centos distribution. Open to other opinions (including the opinion that it will take to long to get the rebuild in place and that we should therefore use |
Implemented into the codebase with #69. |
Hey,
inspired by the discussion here ome/omero-web-docker#67, I checked the Dockerfile for the OMERO.server Docker as well and it is possible to decrease the image size significantly by cleaning the yum caches after installing.
Docker diff:
This leads to the following image sizes (updated has an additional
yum update -y
in the first RUN command.| Options | Image Size |
| Current | 2.34 GB |
| Cleaned | 1.63 GB |
| Cleaned & Update | 1.73 GB |
This would be a 700MB or almost 30% decrease in image size or roughly 25% if the base CentOS image is updated during the build.
// Julian
The text was updated successfully, but these errors were encountered: