Skip to content

Commit 26ee536

Browse files
committed
some some gigs of image size by cleaning up conda
1 parent 12027b5 commit 26ee536

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

Images/qp-qiime2/qp-qiime2.dockerfile

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,16 @@ RUN wget https://github.com/conda-forge/miniforge/releases/download/${MINIFORGE_
2828

2929
# install tornado based trigger layer in base environment
3030
RUN pip install -U pip
31-
RUN conda install tornado
31+
RUN pip install tornado
3232
COPY trigger.py /trigger.py
3333

3434
# Download qiime2 yaml
3535
RUN wget --quiet https://data.qiime2.org/distro/core/qiime2-2023.5-py38-linux-conda.yml
3636

3737
# Create conda env
38-
RUN conda env create --name qiime2 -y --file qiime2-2023.5-py38-linux-conda.yml
38+
RUN conda env create --name qiime2 -y --file qiime2-2023.5-py38-linux-conda.yml \
39+
&& conda clean --all -y \
40+
&& rm -rf /opt/conda/pkgs
3941
# Make RUN commands use the new environment:
4042
# append --format docker to the build command, see https://github.com/containers/podman/issues/8477
4143
SHELL ["conda", "run", "-p", "/opt/conda/envs/qiime2", "/bin/bash", "-c"]
@@ -61,8 +63,9 @@ RUN export QP_QIIME2_DBS=/databases
6163

6264
# configuring the filtering QZAs available for QIIME 2
6365
RUN mkdir /filtering
64-
RUN wget -O /filtering/bloom-analyses.zip https://github.com/knightlab-analyses/bloom-analyses/archive/refs/heads/master.zip
65-
RUN unzip -j /filtering/bloom-analyses.zip bloom-analyses-master/data/qiime2-artifacts-for-qiita/*.qza -d /filtering/
66+
RUN wget -O /filtering/bloom-analyses.zip https://github.com/knightlab-analyses/bloom-analyses/archive/refs/heads/master.zip \
67+
&& unzip -j /filtering/bloom-analyses.zip bloom-analyses-master/data/qiime2-artifacts-for-qiita/*.qza -d /filtering/ \
68+
&& rm -f /filtering/bloom-analyses.zip
6669
RUN export QP_QIIME2_FILTER_QZA=/filtering/
6770

6871
# TODO: should the plugin get the server configuration?!

0 commit comments

Comments
 (0)