-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
103 lines (80 loc) · 2.29 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
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
FROM debian:jessie
MAINTAINER Patrick Callier <[email protected]>
RUN apt-get update
RUN apt-get install -yq --force-yes \
build-essential \
gfortran \
pkg-config \
libatlas-base-dev \
libfreetype6-dev
RUN apt-get install -yq \
python \
python3 \
python-pip \
python3-dev \
python3-pip \
python-dev \
git
RUN pip install numpy
RUN pip install \
jupyter \
cython \
#numpy \
pandas \
seaborn \
matplotlib
RUN pip install -e \
git+git://github.com/scipy/[email protected]#egg=scipy-0.17.0
RUN pip install \
scikit-learn
RUN pip3 install numpy
RUN pip3 install \
jupyter \
cython \
#numpy \
pandas \
seaborn \
matplotlib
RUN pip3 install -e \
git+git://github.com/scipy/[email protected]#egg=scipy-0.17.0
RUN pip3 install \
scikit-learn
# Add kernels for each version of python
RUN ipython kernelspec install-self && \
ipython3 kernelspec install-self
# Install R
RUN echo "deb http://cran.rstudio.com/bin/linux/debian jessie-cran3/" >> /etc/apt/sources.list
# Add cran key to system (may change)
RUN apt-key adv --keyserver keys.gnupg.net --recv-key 381BA480
RUN apt-get update
RUN apt-get install -yq --force-yes \
r-base \
r-recommended \
r-cran-mass \
r-cran-car \
r-cran-nlme \
r-cran-nnet
COPY stan_options.R /
RUN R -e 'install.packages("ggplot2", dependencies=TRUE, repo="http://cran.rstudio.com/")'
RUN R -f stan_options.R
RUN R -e 'install.packages("rstan", dependencies=TRUE, repo="http://cran.rstudio.com/")'
# Set default CRAN repo
RUN echo 'options("repos"="http://cran.rstudio.com")' >> /usr/lib/R/etc/Rprofile.site
# Install IRkernel
RUN apt-get install -yq --force-yes \
libssl-dev \
libssh2-1-dev \
libcurl4-openssl-dev
RUN apt-get install -yq --force-yes \
libzmq3-dev
RUN Rscript -e "install.packages('devtools')" \
-e "library('devtools'); install_github('armstrtw/rzmq')" \
-e "install.packages(c('repr','IRkernel','IRdisplay'), repos = c('http://irkernel.github.io/', getOption('repos')))" \
-e "IRkernel::installspec()"
RUN pip install pystan && \
pip3 install pystan
RUN echo '#!/bin/bash' > /start-notebook.sh && \
echo 'jupyter notebook --no-browser --ip=*' >> /start-notebook.sh && \
chmod +x /start-notebook.sh
WORKDIR /home
CMD ["/start-notebook.sh"]