max/Dockerfile
FinnStutzenstein 9d018e00be initial commit
2020-04-13 08:31:44 +02:00

16 lines
376 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
COPY entrypoint.sh .
RUN mkdir log
ENV PYTHONPATH /app/
ENTRYPOINT ["./entrypoint.sh"]
CMD ["gunicorn", "-w", "1", "-b", "0.0.0.0:8000", "max.app:app"]