Skip to content

Commit

Permalink
Docker: use multi-stage build
Browse files Browse the repository at this point in the history
  • Loading branch information
pdiakumis committed Jun 12, 2024
1 parent 19f2e7d commit 6be2b86
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit 6be2b86

Please sign in to comment.