Optimise image size a little

This commit is contained in:
Chris Wright 2021-07-22 17:37:02 +01:00
parent ee30d5bb7c
commit eef235b8ce
2 changed files with 18 additions and 1 deletions

View File

@ -1 +1,14 @@
.git
test_data
bin
CHANGELOG.md
data
lib
LICENSE
main.nf
nextflow.config
README.md
test_data
# we typically run tests with outputs to these:
output
work

View File

@ -9,7 +9,11 @@ RUN \
&& micromamba install -n base --file $HOME/environment.yaml \
&& micromamba clean --all --yes \
&& fix-permissions $CONDA_DIR \
&& fix-permissions $HOME
&& fix-permissions $HOME \
&& 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 '{}' '+'
USER $WF_UID
WORKDIR $HOME