Skip to content

Instantly share code, notes, and snippets.

@chasballew
Last active August 29, 2015 14:11
Show Gist options
  • Save chasballew/a6a8adb8f0ffe1a73f58 to your computer and use it in GitHub Desktop.
Save chasballew/a6a8adb8f0ffe1a73f58 to your computer and use it in GitHub Desktop.
Flask Dockerfile
# DOCKER-VERSION 0.4.0
from ubuntu:12.04
run echo 'deb http://us.archive.ubuntu.com/ubuntu/ precise universe' >> /etc/apt/sources.list
run apt-get -y update
run apt-get -y install python python-pip build-essential
run pip install flask flask-sqlalchemy
run apt-get -y purge build-essential
run apt-get -y autoremove
ADD . /opt/app
WORKDIR /opt/app
EXPOSE 3000
CMD python manage.py runserver -p 3000 --threaded
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment