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