Dockerfile 311 B

12345678
  1. FROM python:3.9-bullseye
  2. WORKDIR /app
  3. COPY . .
  4. RUN ["python", "-m", "pip", "install", "--upgrade", "pip"]
  5. RUN ["python", "-m", "pip", "install", "-r", "requirements.txt"]
  6. RUN ["python", "-m", "pip", "install", "gunicorn"]
  7. EXPOSE 80
  8. ENTRYPOINT ["python", "-m", "gunicorn", "-c", "./gunicorn.conf.py", "main:app"]