Skip to content

Instantly share code, notes, and snippets.

@tristanwietsma
Created December 9, 2013 05:17
Show Gist options
  • Select an option

  • Save tristanwietsma/7867667 to your computer and use it in GitHub Desktop.

Select an option

Save tristanwietsma/7867667 to your computer and use it in GitHub Desktop.
data-science dockerfile
# 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
docker build -t data-science - < Dockerfile
docker run -i -t data-science /bin/bash
@lardissone
Copy link

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment