Skip to content

Commit

Permalink
try to save some space on CI server
Browse files Browse the repository at this point in the history
  • Loading branch information
KasperSkytte committed Apr 26, 2024
1 parent e7bd550 commit b86096a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ RUN export DEBIAN_FRONTEND=noninteractive \
libfribidi-dev \
libtiff5-dev \
pandoc \
&& apt-get clean -y \
&& rm -rf /var/lib/apt/lists/* \
#enable multithreaded compilation of packages
&& mkdir -p ~/.R \
&& echo "MAKEFLAGS = -j" > ~/.R/Makevars
Expand All @@ -63,6 +65,7 @@ RUN export DEBIAN_FRONTEND=noninteractive \

RUN wget --quiet https://repo.anaconda.com/miniconda/Miniconda3-py38_23.11.0-2-Linux-x86_64.sh -O /opt/miniconda.sh \
&& /bin/bash /opt/miniconda.sh -b -p /opt/conda \
&& rm -rf /opt/miniconda.sh \
&& conda env create -f /opt/environment.yml -n mc-prediction

# Make RUN commands use the new environment
Expand All @@ -75,11 +78,10 @@ RUN R -e "renv::restore(clean = TRUE, lockfile = '/opt/renv.lock', prompt = FALS
RUN export DEBIAN_FRONTEND=noninteractive \
&& apt-get update -qqy \
&& apt-get clean -y \
&& rm -rf /var/lib/apt/lists/* \
&& rm -rf \
/tmp/* \
/opt/environment.yml \
/opt/renv.lock \
/opt/miniconda.sh
/opt/renv.lock

# Install (minimal) LaTeX binaries for R, for the default user only
RUN R -e "tinytex::install_tinytex()"
Expand Down

0 comments on commit b86096a

Please sign in to comment.