-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
35 lines (26 loc) · 1.57 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
# BMO - josemazo/bmo
FROM ubuntu:14.04
MAINTAINER Jose M. Camacho <[email protected]>
RUN DEBIAN_FRONTEND=noninteractive apt-get -qq update
RUN DEBIAN_FRONTEND=noninteractive apt-get -qqy upgrade
RUN DEBIAN_FRONTEND=noninteractive apt-get -qqy dist-upgrade
RUN DEBIAN_FRONTEND=noninteractive apt-get -qqy install build-essential gfortran graphviz-dev imagemagick libatlas-dev libatlas3-base libfreetype6-dev liblapack-dev libpng-dev libxml2-dev libxslt1-dev libyaml-dev pandoc pkg-config python-dev python-pip supervisor zlib1g-dev
RUN DEBIAN_FRONTEND=noninteractive apt-get -qqy autoremove
RUN DEBIAN_FRONTEND=noninteractive apt-get -qqy autoclean
RUN pip install -U pip
RUN pip freeze --local | grep -v '^\-e' | cut -d = -f 1 | xargs pip install -U
RUN pip install numpy
RUN pip install scipy
RUN pip install matplotlib
RUN pip install bottleneck cython numexpr nose patsy pyenchant pygments pygraphviz pytz pyyaml
RUN pip install configobj lxml python-dateutil networkx textblob
RUN pip install beautifulsoup4 gensim ipython[notebook] mpltools nltk pandas pattern scikit-learn simpy ujson
RUN pip install statsmodels
RUN pip install seaborn
ADD resources/ipython_notebook_config.py /ipython_notebook_config.py
RUN IPYTHON_DIR=$(ipython locate) && \
mv /ipython_notebook_config.py $IPYTHON_DIR/profile_default/ipython_notebook_config.py
ADD resources/ipynblogo.png /ipynblogo.png
RUN mv /ipynblogo.png /usr/local/lib/python2.7/dist-packages/IPython/html/static/base/images/ipynblogo.png
RUN mkdir -p /var/log/supervisor
ADD resources/supervisord.conf /etc/supervisor/conf.d/supervisord.conf