From 6be2b86c320f1a6d27c1fca53d4ca96703429aa9 Mon Sep 17 00:00:00 2001 From: pdiakumis Date: Thu, 13 Jun 2024 01:11:39 +1000 Subject: [PATCH] Docker: use multi-stage build --- Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Dockerfile b/Dockerfile index 2f33299c..faa42ee6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,6 +23,10 @@ RUN mamba create -n pcgr --file ${PCGR_CONDA_ENV_DIR}/pcgr-linux-64.lock RUN mamba create -n pcgrr --file ${PCGR_CONDA_ENV_DIR}/pcgrr-linux-64.lock RUN mamba clean --all --force-pkgs-dirs --yes +FROM quay.io/bioconda/base-glibc-busybox-bash:3.1 + +COPY --from=0 /opt/mambaforge/envs/ /opt/mambaforge/envs/ + ARG PCGR_ENV_NAME="pcgr" # pcgr env is activated by default ENV PATH="/opt/mambaforge/envs/${PCGR_ENV_NAME}/bin:${PATH}"