Last active
August 29, 2015 14:11
-
-
Save chasballew/a6a8adb8f0ffe1a73f58 to your computer and use it in GitHub Desktop.
Flask Dockerfile
This file contains 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-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