Dockerfile 291 B

1234567891011121314
  1. FROM python:3.9
  2. COPY . .
  3. # set environment variables
  4. ENV PYTHONDONTWRITEBYTECODE 1
  5. ENV PYTHONUNBUFFERED 1
  6. # install python dependencies
  7. RUN pip install --upgrade pip
  8. RUN pip install --no-cache-dir -r requirements.txt
  9. # gunicorn
  10. CMD ["gunicorn", "--config", "gunicorn-cfg.py", "run:app"]