Skip to content

Instantly share code, notes, and snippets.

@tylertreat
Created February 6, 2014 05:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tylertreat/8838944 to your computer and use it in GitHub Desktop.
Save tylertreat/8838944 to your computer and use it in GitHub Desktop.
Docker container for a Python WSGI application.
# Container for a Python WSGI application.
FROM ubuntu:12.04
MAINTAINER Tyler Treat <tyler.treat@webfilings.com>
RUN apt-get update
# Install Python tools
RUN apt-get install -y python python-dev python-distribute python-pip
# Copy application folder to container
ADD /application app
# Install application requirements
RUN pip install -r app/requirements.txt
EXPOSE 80
CMD python app/server.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment