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

Docker image size reduction #115

Merged
merged 2 commits into from
Dec 18, 2024
Merged

Conversation

JeremyWesthead
Copy link
Contributor

Very simply removed unnecessary files such as git folders of compiled and installed software. Also cleans up apt related files after they are removed

Original image size: 4.56GB
Image size with these fixes: 2.98GB

I did try with more nuanced docker build things such as splitting into a builder and runtime container, but had several issues around things such as glibc versions etc, so settling on this for a substantial image size reduction without complicating things

@martinghunt
Copy link
Member

Thanks :)

For the record, singularity file goes from ~1.1G to 0.8G

@martinghunt martinghunt reopened this Dec 18, 2024
@martinghunt martinghunt merged commit bb52a43 into iqbal-lab-org:master Dec 18, 2024
1 check passed
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.

2 participants