FROM python:3.8.3-buster WORKDIR /www ADD backend/requirements.txt . RUN pip install -r requirements.txt ADD backend . ENV PYTHONDONTWRITEBYTECODE 1 EXPOSE 5000 ADD .env . RUN export $(cat .env | xargs) CMD exec gunicorn --chdir /www --bind :5000 --workers 1 --threads 1 PyMatcha:application --log-level INFO