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"]