21 lines
556 B
Docker
21 lines
556 B
Docker
# Use the respective Makefile to pass the appropriate BASE_IMG and build the image correctly
|
|
ARG BASE_IMG=<rstudio>
|
|
FROM $BASE_IMG
|
|
|
|
# args - software versions
|
|
ARG R_TIDYVERSE_VERSION="1.3.1"
|
|
|
|
# switch to root user for conda installation
|
|
# (only necessary when installing r-tidyverse with Kaniko)
|
|
USER root
|
|
|
|
# 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_USER}
|