Skip to content

Commit

Permalink
Create Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
ttimbers authored Aug 20, 2020
1 parent 60de5b8 commit 834b396
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions dockerfiles/dsci-student/Dockerfile
Original file line number Diff line number Diff line change
@@ -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 <tiffany.timbers@gmail.com>"

# 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

0 comments on commit 834b396

Please sign in to comment.