From 9313cf85fdcadeaae796c0a0a788c3129cd44674 Mon Sep 17 00:00:00 2001 From: Jordi Rosell Date: Thu, 29 Feb 2024 11:58:08 +0100 Subject: [PATCH] conda installation --- conda.Dockerfile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/conda.Dockerfile b/conda.Dockerfile index b7562d3..d25ca0a 100644 --- a/conda.Dockerfile +++ b/conda.Dockerfile @@ -1,12 +1,14 @@ FROM python:3.12-slim-bookworm -RUN apt-get install -y wget && rm -rf /var/lib/apt/lists/* +RUN apt-get update \ + && apt-get install -y wget \ + && rm -rf /var/lib/apt/lists/* RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh \ - && mkdir /root/.conda \ - && bash Miniconda3-latest-Linux-x86_64.sh -b \ + && bash Miniconda3-latest-Linux-x86_64.sh -b -p /root/miniconda \ && rm -f Miniconda3-latest-Linux-x86_64.sh \ - && conda install r-base r-dplyr r-purrr r-purrr r-readr r-stringr r-ggplot2 r-janitor r-targets r-curl -y --quiet --channel=conda-forge + && PATH="/root/miniconda/bin:$PATH" \ + && conda install r-base r-dplyr r-purrr r-readr r-stringr r-ggplot2 r-janitor r-targets r-curl -y --quiet --channel=conda-forge WORKDIR /workspace COPY _targets.R functions.R /workspace/