46 lines
1.5 KiB
Docker
46 lines
1.5 KiB
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 \
|
|
imagemagick ffmpeg curl \
|
|
; \
|
|
rm -rf /var/lib/apt/lists/*;
|
|
|
|
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
|
|
|
|
# Freeze the requirements and then export them to a file that is accessible to the host
|
|
RUN pip freeze >> /tmp/aether_fastapi_requirements_current.txt
|
|
# docker cp ae_api_dev:/tmp/aether_fastapi_requirements_current.txt /home/scott/tmp/docker
|
|
|
|
# RUN pip freeze > /tmp/aether_fastapi_requirements_new.txt
|
|
# RUN cp /tmp/aether_fastapi_requirements_new.txt /tmp/aether_fastapi_requirements_new_copy.txt
|
|
|
|
# RUN pip freeze > /tmp/aether_fastapi_requirements_current.txt
|
|
# RUN cp /aether_fastapi_requirements_current.txt /var/aether_fastapi_requirements_current.txt
|
|
# RUN pip freeze >> /var/aether_fastapi_requirements_current.txt
|
|
|
|
# VOLUME ["/export"]
|
|
|
|
# RUN pip freeze > /logs/aether_fastapi_requirements_current.txt
|
|
# RUN pip freeze > /temp/aether_fastapi_requirements_current.txt
|
|
# RUN pip freeze > /tmp/aether_fastapi_requirements_current.txt
|
|
# RUN pip freeze > /var/aether_fastapi_requirements_current.txt
|
|
|
|
# RUN pip freeze
|
|
|
|
CMD ["gunicorn", "--conf", "/conf/gunicorn_fastapi_conf.py"]
|