microblog.pub/Dockerfile

8 lines
248 B
Docker
Raw Normal View History

2018-07-11 17:41:52 +00:00
FROM python:3
2018-05-18 18:41:41 +00:00
ADD . /app
WORKDIR /app
RUN pip install -r requirements.txt
ENV FLASK_APP=app.py
2018-09-01 09:17:46 +00:00
RUN python -c "import config; config.create_indexes()"
CMD ["gunicorn", "-t", "300", "-w", "2", "-b", "0.0.0.0:5005", "--log-level", "debug", "app:app"]