Clean up and upgrades related to Python requirements, Flask, and FastAPI.

This commit is contained in:
Scott Idem
2023-09-12 15:41:09 -04:00
parent 42b6e8ed08
commit 92baaccb48
12 changed files with 76 additions and 107 deletions

View File

@@ -1,5 +1,5 @@
# FROM tiangolo/uvicorn-gunicorn-fastapi:latest
FROM tiangolo/uvicorn-gunicorn-fastapi:python3.10
FROM tiangolo/uvicorn-gunicorn-fastapi:python3.11
LABEL maintainer="Scott Idem <scott.idem@oneskyit.com>"
@@ -26,13 +26,7 @@ COPY conf/aether_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
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"]