sigven / pcgr

Personal Cancer Genome Reporter (PCGR)
https://sigven.github.io/pcgr
MIT License
251 stars 47 forks source link

Docker: decrease image size #234

Closed pdiakumis closed 2 months ago

pdiakumis commented 2 months ago

Explore multi-stage image builds. We can initially build the conda environments within a continuum image (e.g. https://hub.docker.com/r/continuumio/miniconda3/tags) then simply copy those environment folders into a base bioconda image such as https://quay.io/repository/bioconda/base-glibc-busybox-bash. This should bring down the image size significantly.

See e.g. https://uwekorn.com/2021/03/01/deploying-conda-environments-in-docker-how-to-do-it-right.html