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

reduce docker image size by almost half #28

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kaczmarj
Copy link

thank you for making this package -- it's exactly what i need :)

This commit substantially reduces the size of the docker image by using
multi-stage builds. This allows us to build the software in the first
stage and copy the built artifacts into the second, final stage. We only
install runtime dependencies into the second stage. We also use a python
base image so that python/pip are already available in the image.

This commit substantially reduces the size of the docker image by using
multi-stage builds. This allows us to build the software in the first
stage and copy the built artifacts into the second, final stage. We only
install runtime dependencies into the second stage. We also use a python
base image so that python/pip are already available in the image.
@vntasis vntasis self-assigned this Oct 25, 2021
@vntasis vntasis added the enhancement New feature or request label Oct 25, 2021
@vntasis
Copy link
Collaborator

vntasis commented Oct 25, 2021

Hi

Thanks for the suggestion. It is useful. I merged your version, but afterwards I changed it mainly for maintenance purposes. Now we use the multi-stage build, but the environment inside the docker image will be build based on the conda yml file. The resulted image is a bit bigger than the one you suggested, but it will be better long term.

Vasilis

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants