forked from jupyter/docker-stacks
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile
37 lines (31 loc) · 1.05 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# 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-kknn \
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 labextension install @techrah/text-shortcuts \
&& 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