From a5c902b9dd00a6b72fb5d38d66ab9e3930264231 Mon Sep 17 00:00:00 2001 From: Carl Boettiger Date: Mon, 30 Sep 2024 15:35:26 -0700 Subject: [PATCH] :hear_no_evil: --- Dockerfile | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0b12086..f6b8bd8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,19 +1,15 @@ +# Choose any ubuntu-based Jupyter image, e.g.: FROM quay.io/jupyter/minimal-notebook +# Install R, RStudio on any Ubuntu LTS USER root - -# Install R -RUN curl -s https://raw.githubusercontent.com/boettiger-lab/repo2docker-r/refs/heads/main/install_r.sh | bash - -## RStudio -RUN conda install jupyter-rsession-proxy RUN curl -s https://raw.githubusercontent.com/boettiger-lab/repo2docker-r/refs/heads/main/install_r.sh | bash +RUN curl -s https://raw.githubusercontent.com/boettiger-lab/repo2docker-r/refs/heads/main/install_rstudio.sh | bash -COPY environment.yml environment.yml -RUN conda env update -f environment.yml - +# When run as root, install.r automagically handles any necessary apt-gets COPY install.r install.r RUN Rscript install.r USER ${NB_USER} - +COPY environment.yml environment.yml +RUN conda env update -f environment.yml