Created
January 24, 2018 10:24
-
-
Save amir-rahnama/3fa66e3ca73cc427f2a314b6de4ea9e8 to your computer and use it in GitHub Desktop.
Dockerfile for your Flask application
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
FROM python:3 | |
MAINTAINER Amir Rahnama "[email protected]" | |
COPY . /app | |
WORKDIR /app | |
RUN pip install -r requirement.txt | |
RUN pip install --editable . | |
ENV FLASK_APP mini/app.py | |
RUN flask initdb | |
EXPOSE 5000 | |
CMD python -m flask run --host=0.0.0.0 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Run with