Skip to content

Commit 94e9e2c

Browse files
fix: move apptainer into separate env in docker image
1 parent eb0c884 commit 94e9e2c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,14 @@ RUN apt-get update \
1313
&& apt-get clean \
1414
&& rm -rf /var/lib/apt /var/lib/dpkg /var/lib/cache /var/lib/log
1515

16+
RUN micromamba create -q -y -c conda-forge -n apptainer apptainer
17+
1618
RUN micromamba create -q -y -c bioconda -c conda-forge -n snakemake \
1719
snakemake-minimal --only-deps && \
1820
eval "$(micromamba shell hook --shell bash)" && \
1921
micromamba activate /opt/conda/envs/snakemake && \
20-
micromamba install -c conda-forge apptainer mamba && \
22+
micromamba install -c conda-forge mamba && \
2123
micromamba clean --all -y
2224

23-
ENV PATH /opt/conda/envs/snakemake/bin:${PATH}
25+
ENV PATH /opt/conda/envs/snakemake/bin:/opt/conda/envs/apptainer/bin:${PATH}
2426
RUN pip install .[reports,messaging,pep]

0 commit comments

Comments
 (0)