Created
December 13, 2014 02:46
-
-
Save chasballew/d1e793611706d6542ada to your computer and use it in GitHub Desktop.
Flask w/ requirements 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 | |
ADD requirements.txt /opt/app/ | |
RUN pip install -r requirements.txt | |
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