Skip to content

Commit

Permalink
create snakemake cache in container
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmyliu1326 committed Dec 18, 2023
1 parent 40a330a commit 36ea6d7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,15 @@ RUN apt-get update && \
chmod +x /InfluenzaNanopore/influenza_consensus.sh && \
ln -s /InfluenzaNanopore/influenza_consensus.sh /usr/local/bin/influenza_consensus.sh

RUN mamba create -p $CONDA_DIR/envs/medaka -c conda-forge -c bioconda -y medaka=1.6.0 && \
RUN mamba create -p $CONDA_DIR/envs/medaka -c conda-forge -c bioconda -y medaka --strict-channel-priority && \
mamba env update -n base -f /InfluenzaNanopore/environment.yml && \
mamba clean --all --yes && \
rm -rf $CONDA_DIR/conda-meta && \
rm -rf $CONDA_DIR/include && \
rm -rf $CONDA_DIR/lib/python3.*/site-packages/pip && \
find $CONDA_DIR -name '__pycache__' -type d -exec rm -rf '{}' '+'

RUN mkdir /.cache && \
chmod a+rwX /.cache

ADD db/ /db/

0 comments on commit 36ea6d7

Please sign in to comment.