tiangolo / uvicorn-gunicorn-fastapi-docker

Docker image with Uvicorn managed by Gunicorn for high-performance FastAPI web applications in Python with performance auto-tuning.
MIT License
2.7k stars 333 forks source link

Remove version specification to use the latest packages when building… #262

Closed qixxin closed 1 month ago

qixxin commented 6 months ago

… docker image.

A breaking change from pydantic this solves is converting models to dict or json. ".json() & .dict()" are now deprecated and use model_dump() and model_dump_json()

tiangolo commented 1 month ago

It seems the tests were breaking on this one. :thinking:

Also, 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

I'll now close this one, but thanks for the effort! :coffee:

qixxin commented 4 weeks ago

Makes sense! I've switched to building my own image from scratch as well, thank you for the review!