-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cleanup rstudio tidyverse notebook image
- Loading branch information
1 parent
b2c1078
commit 84d6d13
Showing
1 changed file
with
14 additions
and
9 deletions.
There are no files selected for viewing
23 changes: 14 additions & 9 deletions
23
components/example-notebook-servers/rstudio-tidyverse/Dockerfile
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,13 +1,18 @@ | ||
FROM public.ecr.aws/j1r0q0g6/notebooks/notebook-servers/rstudio:master-87b7d015 | ||
FROM public.ecr.aws/j1r0q0g6/notebooks/notebook-servers/rstudio:master-5cb03c85 | ||
|
||
# Switching to the root user for this installation | ||
# is only necessary when building the image with Kaniko | ||
# args - software versions | ||
ARG R_TIDYVERSE_VERSION="1.3.0" | ||
|
||
# switch to root user for conda installation | ||
# (only necessary when installing r-tidyverse with Kaniko) | ||
USER root | ||
|
||
RUN conda install --quiet --yes \ | ||
'r-tidyverse=1.3.0' && \ | ||
conda clean --all -f -y && \ | ||
chown -R ${NB_USER}:users $CONDA_DIR && \ | ||
chown -R ${NB_USER}:users $HOME | ||
# install - r-tidyverse | ||
RUN conda install -y -q \ | ||
r-tidyverse=${R_TIDYVERSE_VERSION} \ | ||
&& conda update -y -q --all \ | ||
&& conda clean -a -f -y \ | ||
&& chown -R ${NB_USER}:users ${CONDA_DIR} \ | ||
&& chown -R ${NB_USER}:users ${HOME} | ||
|
||
USER $NB_UID | ||
USER ${NB_USER} |