Skip to content

Commit

Permalink
cleanup rstudio tidyverse notebook image
Browse files Browse the repository at this point in the history
  • Loading branch information
thesuperzapper committed Mar 23, 2021
1 parent b2c1078 commit 84d6d13
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions components/example-notebook-servers/rstudio-tidyverse/Dockerfile
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}

0 comments on commit 84d6d13

Please sign in to comment.