falcon-asgi.dockerfile 483 B

1234567891011121314151617
  1. FROM python:3.10-bullseye
  2. RUN apt-get update; apt-get install libpq-dev python3-dev -y
  3. WORKDIR /falcon
  4. COPY ./ /falcon
  5. RUN pip3 install -U pip
  6. RUN pip3 install cython==0.29.26
  7. #RUN pip3 install falcon==3.1.1 --no-binary :all:
  8. RUN pip3 install -r /falcon/requirements.txt
  9. RUN pip3 install -r /falcon/requirements-uvicorn.txt
  10. RUN pip3 install -r /falcon/requirements-db-tortoise.txt
  11. ENV ASYNCIO=true
  12. EXPOSE 8080
  13. CMD ["gunicorn", "app_asgi_tortoise:asgi", "-c", "gunicorn_conf.py"]