mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-17 06:52:56 +00:00

- any files the user should be able to write should have group `user-permissions` with `g+rwX` - remove `chown` from start.sh because it is no longer needed - add `fix-permissions` script for setting the user-writable permissions on a path - user-permissions group as GID 10000 (is there a reason for it to have a different value?) - containers can set group with `--group-add user-writable` if they want to run with a different uid/gid (without -u root -e NB_UID -e NB_GID, which make this unnecessary)
38 lines
865 B
Docker
38 lines
865 B
Docker
# Copyright (c) Jupyter Development Team.
|
|
# Distributed under the terms of the Modified BSD License.
|
|
FROM jupyter/minimal-notebook
|
|
|
|
MAINTAINER Jupyter Project <jupyter@googlegroups.com>
|
|
|
|
USER root
|
|
|
|
# R pre-requisites
|
|
RUN apt-get update && \
|
|
apt-get install -y --no-install-recommends \
|
|
fonts-dejavu \
|
|
gfortran \
|
|
gcc && apt-get clean && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
USER $NB_USER
|
|
|
|
# R packages
|
|
RUN conda install --quiet --yes \
|
|
'r-base=3.3.2' \
|
|
'r-irkernel=0.7*' \
|
|
'r-plyr=1.8*' \
|
|
'r-devtools=1.12*' \
|
|
'r-tidyverse=1.0*' \
|
|
'r-shiny=0.14*' \
|
|
'r-rmarkdown=1.2*' \
|
|
'r-forecast=7.3*' \
|
|
'r-rsqlite=1.1*' \
|
|
'r-reshape2=1.4*' \
|
|
'r-nycflights13=0.2*' \
|
|
'r-caret=6.0*' \
|
|
'r-rcurl=1.95*' \
|
|
'r-crayon=1.3*' \
|
|
'r-randomforest=4.6*' && \
|
|
conda clean -tipsy && \
|
|
fix-permissions $CONDA_DIR
|