Skip to content

Instantly share code, notes, and snippets.

@shreyaskarnik
Created October 3, 2013 19:56
Show Gist options
  • Save shreyaskarnik/6816117 to your computer and use it in GitHub Desktop.
Save shreyaskarnik/6816117 to your computer and use it in GitHub Desktop.
Dockerfile for shreyask/mlnotebook
FROM lopter/raring-base
MAINTAINER Shreyas
# Basic Bootstrap
RUN echo "deb http://archive.ubuntu.com/ubuntu raring main universe" >> /etc/apt/sources.list
RUN apt-get update
RUN apt-get install -y libxml2-dev libxslt1.1 libxslt1-dev libevent-dev build-essential make python-dev python-dateutil libatlas-base-dev gfortran vim git wget libsqlite3-dev sqlite3 openssh-server libpq5 libpq-dev libpng-dev libjpeg8-dev libfreetype6-dev
RUN wget http://python-distribute.org/distribute_setup.py
RUN python distribute_setup.py
RUN wget --no-check-certificate http://raw.github.com/pypa/pip/master/contrib/get-pip.py
RUN python get-pip.py
RUN pip install numpy
RUN pip install scipy scikit-learn pandas sympy nose jinja2 pyzmq ipython nltk gensim
RUN python -m nltk.downloader -d /usr/share/nltk_data all
RUN pip install matplotlib
EXPOSE 8888
CMD ipython notebook --pylab=inline --ip=* --MappingKernelManager.time_to_dead=10 --MappingKernelManager.first_beat=3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment