-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDockerfile
More file actions
103 lines (97 loc) · 3.01 KB
/
Dockerfile
File metadata and controls
103 lines (97 loc) · 3.01 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
# https://hub.docker.com/r/jupyter/datascience-notebook/tags/
# https://github.com/jupyter/docker-stacks/tree/master/datascience-notebook
FROM jupyter/datascience-notebook:3deefc7d16c7
## Install some more R packages
## Install them by extending the list from https://github.com/jupyter/docker-stacks/blob/master/datascience-notebook/Dockerfile
## in order to prevent them from upgrade/downgrade
#RUN conda install --quiet --yes \
# 'rpy2=2.8*' \
# 'r-base=3.4.1' \
# 'r-irkernel=0.8*' \
# 'r-plyr=1.8*' \
# 'r-devtools=1.13*' \
# 'r-tidyverse=1.1*' \
# 'r-shiny=1.0*' \
# 'r-rmarkdown=1.8*' \
# 'r-forecast=8.2*' \
# 'r-rsqlite=2.0*' \
# 'r-reshape2=1.4*' \
# 'r-nycflights13=0.2*' \
# 'r-caret=6.0*' \
# 'r-rcurl=1.95*' \
# 'r-crayon=1.3*' \
# 'r-randomforest=4.6*' \
# 'r-htmltools=0.3*' \
# 'r-sparklyr=0.7*' \
# 'r-htmlwidgets=1.0*' \
# 'r-hexbin=1.27*' \
# 'r-rjava=0.9*' \
# # https://cran.r-project.org/web/packages/topicmodels/index.html
# # r-topicmodels imports r-tm-0.7_5 andn r-tm imports r-nlp-0.1_11
# 'r-topicmodels=0.2*' \
# 'r-lda=1.4*' \
# && \
# conda clean -tipsy && \
# fix-permissions $CONDA_DIR && \
# fix-permissions /home/$NB_USER
# Install some more python packages
# conda-forge is already added in https://github.com/jupyter/docker-stacks/blob/master/base-notebook/Dockerfile
RUN conda install --quiet --yes \
'jupyter_nbextensions_configurator' \
'lxml=4.2.*' \
'wordcloud=1.5.*' && \
conda clean -tipsy && \
fix-permissions $CONDA_DIR && \
fix-permissions /home/$NB_USER
# Install java for R (for rJava, openNLP, openNLPdata packages)
USER root
RUN apt-get update -qq && \
apt-get install -qq -y --no-install-recommends \
gsl-bin \
libgsl0-dev \
default-jre \
default-jdk \
r-cran-rjava \
&& apt-get clean -qq && \
rm -rf /var/lib/apt/lists/*
RUN R CMD javareconf
USER $NB_USER
# Install some more R packages
# opennlp requires all r packages to be updated to newer version
RUN conda install --quiet --yes \
-c bitnik \
'rpy2' \
'r-base' \
'r-irkernel' \
'r-plyr' \
'r-devtools' \
'r-tidyverse' \
'r-shiny' \
'r-rmarkdown' \
'r-forecast' \
'r-rsqlite' \
'r-reshape2' \
'r-nycflights13' \
'r-caret' \
'r-rcurl' \
'r-crayon' \
'r-randomforest' \
'r-htmltools' \
'r-sparklyr' \
'r-htmlwidgets' \
'r-hexbin' \
'r-rjava' \
# https://cran.r-project.org/web/packages/topicmodels/index.html
# r-topicmodels imports r-tm-0.7_5 andn r-tm imports r-nlp-0.1_11
'r-topicmodels=0.2*' \
'r-lda=1.4*' \
# install through https://anaconda.org/bitnik/repo
# https://cran.r-project.org/web/packages/openNLP/index.html
# OpenNLP imports NLP (≥ 0.1-6.3), openNLPdata (≥ 1.5.3-1), rJava (≥ 0.6-3)
'r-opennlpdata=1.5.*' \
'r-opennlp=0.2*' \
&& \
conda clean -tipsy && \
fix-permissions $CONDA_DIR && \
fix-permissions /home/$NB_USER
RUN pip install --no-cache-dir nbgitpuller