-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
6 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |