7 lines
248 B
Docker
7 lines
248 B
Docker
FROM python:3
|
|
ADD . /app
|
|
WORKDIR /app
|
|
RUN pip install -r requirements.txt
|
|
ENV FLASK_APP=app.py
|
|
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"]
|