falcon-orjson.dockerfile 497 B

123456789101112131415161718
  1. FROM python:3.9-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 orjson==3.8.10
  8. #RUN pip3 install falcon==3.1.1 --no-binary :all:
  9. RUN pip3 install -r /falcon/requirements.txt
  10. RUN pip3 install -r /falcon/requirements-meinheld.txt
  11. RUN pip3 install -r /falcon/requirements-db-pony.txt
  12. EXPOSE 8080
  13. ENV USE_ORJSON=1
  14. CMD ["gunicorn", "app:wsgi", "-c", "gunicorn_conf.py"]