Created
February 26, 2017 01:28
-
-
Save txthai/42a90dfef922e84ad80c6da18b2b15ec to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is based on the Jupyter datascience-notebook dockerfile | |
# https://github.com/jupyter/docker-stacks/blob/fd7a494cc59f1ca16d39375634b7f77c3beebe3c/datascience-notebook/Dockerfile | |
# The Julia dependencies and installation were removed | |
# A build argument to change the UID was added | |
# Pip was upgraded | |
# The Cassandra Python driver was installed | |
# Rename to "Dockerfile" before using | |
FROM jupyter/scipy-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 including IRKernel which gets installed globally. | |
RUN conda config --add channels r && \ | |
conda install --quiet --yes \ | |
'rpy2=2.8*' \ | |
'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 | |
# Add build argument to change UID | |
# Upgrade Pip | |
# Install Cassandra Python Driver | |
USER root | |
ARG NEW_NB_UID=1000 | |
RUN \ | |
usermod -u $NEW_NB_UID $NB_USER && \ | |
pip install --upgrade pip && \ | |
pip install cassandra-driver | |
USER $NB_USER |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment