From 834b396146934b6c048851a911db82337c5219a3 Mon Sep 17 00:00:00 2001 From: "Tiffany A. Timbers" Date: Thu, 20 Aug 2020 15:23:53 -0700 Subject: [PATCH] Create Dockerfile --- dockerfiles/dsci-student/Dockerfile | 35 +++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 dockerfiles/dsci-student/Dockerfile diff --git a/dockerfiles/dsci-student/Dockerfile b/dockerfiles/dsci-student/Dockerfile new file mode 100644 index 0000000..fa8b8f2 --- /dev/null +++ b/dockerfiles/dsci-student/Dockerfile @@ -0,0 +1,35 @@ +# Copyright (c) UBC-DSCI Development Team. +# Distributed under the terms of the Modified BSD License. +ARG BASE_CONTAINER=jupyter/r-notebook +FROM $BASE_CONTAINER + +LABEL maintainer="Tiffany Timbers " + +# Install R packages on conda-forge +RUN conda install --quiet --yes -c conda-forge \ + r-cowplot=1.* \ + r-ggally=1.5.* \ + r-gridextra=2.3.* \ + r-infer=0.5.* \ + r-testthat=2.3.* \ + r-rpostgres=1.2.* + +# Install jupyter extensions (nbgitpuller, git, jupytext) +USER root + +RUN pip install git+https://github.com/data-8/nbgitpuller \ + && jupyter serverextension enable --sys-prefix nbgitpuller \ + && jupyter labextension install @jupyterlab/git \ + && pip install jupyterlab-git \ + && jupyter serverextension enable --py jupyterlab_git \ + && pip install jupytext --upgrade \ + && jupyter lab build +RUN useradd -m -s /bin/bash -N -u 9999 jupyter + +USER jupyter + +# Configure jupyter user +ENV NB_USER=jupyter \ + NB_UID=9999 +ENV HOME=/home/$NB_USER +WORKDIR $HOME