Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
hanhantw opened this issue Oct 15, 2021 · 1 comment
Open

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

hanhantw opened this issue Oct 15, 2021 · 1 comment

Comments

@hanhantw
Copy link

hanhantw commented Oct 15, 2021

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?

@billcrook
Copy link

Or am I the only one to feel so?

No, it's awkward.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants