Skip to content

Why use /app/app instead of /code/app in the docker image? #312

Answered by tiangolo
hanhantw asked this question in Questions
Discussion options

You must be logged in to vote

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

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by tiangolo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #126 on August 25, 2024 03:44.