[Question] how to reduce Docker image size
tamuanand opened this issue · 1 comments
Hi @apeltzer
We have exchanged messages here: #28 (comment)
A related question:
I am relatively new to Nextflow and using NF with Docker. As a general rule, how big can the Docker image can be before it is considered too large? I was wondering if you could help and share some guidelines?
If I do docker build with the environment.yml from nf-core/sarek or mag, the image size comes close to 2.4 GB. Is there a way to reduce the size of the image?
I tried some of these techniques too but it did not help:
https://uwekorn.com/2021/03/03/deploying-conda-environments-in-docker-cheatsheet.html
https://jcristharif.com/conda-docker-tips.html
I also tried with Micromamba, the size still of the final Docker image is pretty huge
https://github.com/mamba-org/micromamba-docker
Have you tried Mamba/Micromamba? I would be curious to know your findings
Thanks in advance.
The latest release should make this a bit easier to manage as it handles individual modules with individual containers - please have a look and reopen if required 👍🏻