Skip to content

Commit

Permalink
Merge pull request #235 from sigven/docker
Browse files Browse the repository at this point in the history
Docker: use multi-stage build
  • Loading branch information
sigven authored Jun 13, 2024
2 parents e96d3e9 + 6be2b86 commit 59a849d
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 59a849d

Please sign in to comment.