Skip to content

Commit

Permalink
Try to shrink docker size
Browse files Browse the repository at this point in the history
  • Loading branch information
bbimber committed Mar 17, 2024
1 parent 05ae52b commit 8f66342
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ ENV CRAN=https://packagemanager.posit.co/cran/__linux__/focal/latest
RUN /bin/sh -c /rocker_scripts/install_R_source.sh \
&& /bin/sh -c /rocker_scripts/setup_R.sh

ENV PIP_NO_CACHE_DIR=1

# NOTE: inkscape and librsvg2-bin installed for CoNGA
# NOTE: locales / locales-all added due to errors with install_deps() and special characters in the DESCRIPTION file for niaid/dsb
RUN echo "local({r <- getOption('repos') ;r['CRAN'] = 'https://packagemanager.rstudio.com/cran/__linux__/focal/latest';options(repos = r);rm(r)})" >> ~/.Rprofile \
Expand Down Expand Up @@ -101,4 +103,5 @@ RUN echo -e "export R_VERSION=$R_VERSION \\" > /environmentExport.sh \
&& echo -e "export ANNOTATION_HUB_CACHE=$ANNOTATION_HUB_CACHE \\" >> /environmentExport.sh \
&& echo -e "export EXPERIMENT_HUB_CACHE=$EXPERIMENT_HUB_CACHE \\" >> /environmentExport.sh \
&& echo -e "export BFC_CACHE=$BFC_CACHE \\" >> /environmentExport.sh \
&& echo -e "export PIP_NO_CACHE_DIR=$PIP_NO_CACHE_DIR \\" >> /environmentExport.sh \
&& echo -e "export CELLTYPIST_FOLDER=$CELLTYPIST_FOLDER" >> /environmentExport.sh

0 comments on commit 8f66342

Please sign in to comment.