Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Simple base python Dockerfile (includes some basic OS packages, setuptools, pip, virtualenv, and uwsgi)
FROM ubuntu
MAINTAINER Mike Clarke <mike@standardtreasury.com>
RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get install -y language-pack-en
ENV LANGUAGE en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LC_ALL en_US.UTF-8
RUN locale-gen en_US.UTF-8
RUN dpkg-reconfigure locales
RUN echo "Etc/UTC" > /etc/timezone
RUN dpkg-reconfigure -f noninteractive tzdata
RUN apt-get install -y git-core libxml2-dev build-essential python python-dev wget
RUN apt-get install -y postgresql-client-9.1 postgresql-client-common libpq5
RUN apt-get install -y libpq-dev
RUN wget https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py
RUN python ez_setup.py
RUN wget https://raw.github.com/pypa/pip/master/contrib/get-pip.py
RUN python get-pip.py
RUN pip install virtualenv uwsgi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment