tiangolo/uvicorn-gunicorn-fastapi-docker

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

hanhantw opened this issue · 1 comments

Hi,

I'm new here using FastAPI.

While trying to deploy the project on docker, I notice that /code/app is used for pure python image like python:3.9 but /app/app for FastAPI image tiangolo/uvicorn-gunicorn-fastapi:python3.9 in the tutorial of how to deploy on docker.

Is there any reason for this? I feel that /app/app is more confusing than /code/app. We have two directories in different levels both named app and an application in main.py called app as well. For some beginners, I feel it might be hard to distinguish which directory app refers to or if it refers to the application while reading the commands or codes. Or am I the only one to feel so?

Or am I the only one to feel so?

No, it's awkward.