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 . COPY requirements-dev.txt . RUN pip install -U -r requirements.txt -r requirements-dev.txt COPY entrypoint.sh . COPY cleanup.sh . COPY setup.cfg . RUN mkdir log ENV PYTHONPATH /app/ ENV FLASK_APP=max.app ENV FLASK_ENV=development ENTRYPOINT ["./entrypoint.sh"] CMD ["flask", "run", "--host", "0.0.0.0", "--port", "8000"]