From 87d80daa063255335eeb00c7d39c463925ec4078 Mon Sep 17 00:00:00 2001 From: Jordi Rosell Date: Thu, 29 Feb 2024 16:24:15 +0100 Subject: [PATCH] change paths to run R for conda --- conda.Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/conda.Dockerfile b/conda.Dockerfile index 98d5f87..c3d05ac 100644 --- a/conda.Dockerfile +++ b/conda.Dockerfile @@ -8,10 +8,10 @@ RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh \ && bash Miniconda3-latest-Linux-x86_64.sh -b -p /root/miniconda \ && rm -f Miniconda3-latest-Linux-x86_64.sh \ && 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 \ - && conda config --set auto_activate_base true + && conda init \ + && 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/ -CMD bash -c "R -e 'sessionInfo(); list.files(); targets::tar_make();'" +CMD PATH=/root/miniconda/bin:$PATH && R -e "sessionInfo(); list.files(); targets::tar_make();"