23 lines
626 B
Docker
23 lines
626 B
Docker
# FROM tiangolo/uvicorn-gunicorn-fastapi:latest
|
|
FROM tiangolo/uvicorn-gunicorn-fastapi:python3.11
|
|
|
|
LABEL maintainer="Scott Idem <scott.idem@oneskyit.com>"
|
|
|
|
WORKDIR /srv/aether_api
|
|
|
|
# RUN apt-get update; \
|
|
# apt-get install -y \
|
|
# poppler-utils \
|
|
# ; \
|
|
# rm -rf /var/lib/apt/lists/*;
|
|
|
|
# RUN pdftoppm -h
|
|
|
|
COPY conf/aether_fastapi_requirements.txt /tmp/requirements.txt
|
|
RUN pip install --no-cache-dir -r /tmp/requirements.txt
|
|
|
|
RUN pip freeze > /aether_fastapi_requirements_current.txt
|
|
RUN pip freeze > /tmp/aether_fastapi_requirements_current.txt
|
|
|
|
CMD ["gunicorn", "--conf", "/conf/gunicorn_fastapi_conf.py"]
|