-
Hi, I'm new here using FastAPI. While trying to deploy the project on docker, I notice that Is there any reason for this? I feel that |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
No, it's awkward. |
Beta Was this translation helpful? Give feedback.
-
I agree! It was like that only for backwards compatibility. 😅 At some point, a long time ago, I thought it was a good idea, but then I realized it wasn't. 😬 Anyway, 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 |
Beta Was this translation helpful? Give feedback.
I agree!
/app/app
is more confusing, that's why in the new docs I suggest/code/app
. 🤓It was like that only for backwards compatibility. 😅
At some point, a long time ago, I thought it was a good idea, but then I realized it wasn't. 😬
Anyway, 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