FROM python:3.8-slim RUN apt-get update && apt-get install -y --no-install-recommends \ make \ gcc \ git \ python3-dev \ libffi-dev \ libpq-dev \ libyaml-dev ADD src/requirements.txt /requirements.txt RUN pip3 install -r /requirements.txt ADD src /fosspay RUN cd /fosspay && \ make ENV GUNICORN_CMD_ARGS "--bind 0.0.0.0:5000 --workers 2 --chdir /fosspay" CMD ["/usr/local/bin/gunicorn", "app:app"]