max/Dockerfile
Finn Stutzenstein add153d8a6 More work
2022-01-22 18:37:56 +01:00

23 lines
477 B
Docker

FROM python:3.8.1
RUN apt-get -y update && apt-get -y upgrade && \
apt-get install --no-install-recommends -y wait-for-it postgresql-client
WORKDIR /app
COPY requirements.txt .
RUN pip install -U -r requirements.txt
RUN mkdir log
ENV PYTHONPATH /app/
ENV FLASK_APP=max.app
ENV FLASK_ENV=production
COPY max/ ./max
COPY scripts/entrypoint.sh .
COPY scripts/db-setup.sh .
ENTRYPOINT ["./entrypoint.sh"]
CMD ["gunicorn", "-w", "1", "-b", "0.0.0.0:8000", "max.app:app"]