Created
December 9, 2013 05:17
-
-
Save tristanwietsma/7867667 to your computer and use it in GitHub Desktop.
data-science dockerfile
This file contains hidden or 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
| # Python Data Science Environment | |
| # | |
| # VERSION 1.0 | |
| # use ubuntu base image from dotCloud | |
| FROM ubuntu | |
| MAINTAINER Tristan Wietsma [email protected] | |
| # update and upgrade repos | |
| RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list | |
| RUN apt-get update | |
| RUN apt-get upgrade -y | |
| # install python & scientific libraries | |
| RUN apt-get install -y build-essential python-dev | |
| RUN apt-get install -y ipython-notebook | |
| RUN apt-get install -y python-numpy python-setuptools python-scipy | |
| RUN apt-get install -y libopenblas-dev | |
| RUN apt-get install -y python-matplotlib | |
| RUN apt-get install -y python-pandas | |
| RUN apt-get install -y python-sklearn | |
| # create quant user | |
| RUN useradd -d/home/quant -m quant | |
| USER quant |
This file contains hidden or 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
| docker build -t data-science - < Dockerfile | |
| docker run -i -t data-science /bin/bash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you!