-
Hi, I'm using the python3.11 image with is built afaik with fastapi 0.88.0 currently. This doesn't support Pydantic2, would it be possible to use a more recent fastapi version? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
That would be great @tiangolo |
Beta Was this translation helpful? Give feedback.
-
Now that Uvicorn supports managing workers with Because of that, I deprecated this Docker image: https://github.com/tiangolo/uvicorn-gunicorn-fastapi-docker#-warning-you-probably-dont-need-this-docker-image Given that, you can start from an official recent Python Docker image, and install the latest FastAPI and the latest Pydantic. 😎 |
Beta Was this translation helpful? Give feedback.
Now that Uvicorn supports managing workers with
--workers
, including restarting dead ones, there's no need for Gunicorn. That also means that it's much simpler to build a Docker image from scratch now, I updated the docs to explain it.Because of that, I deprecated this Docker image: https://github.com/tiangolo/uvicorn-gunicorn-fastapi-docker#-warning-you-probably-dont-need-this-docker-image
Given that, you can start from an official recent Python Docker image, and install the latest FastAPI and the latest Pydantic. 😎