You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
First Check
Commit to Help
Example Code
Description
I'm struggling to understand the sequence of commands in backend dockerfile
the Dockerfile runs
uvicorn main:app --reload
when importing the Dockerfile from FROM tiangolo/uvicorn-gunicorn-fastapi:python3.10with command
CMD ["/start.sh"]
is there!however `COPY ./app /app/app takes place till the end here .
How is unicorn being executed without the app? does this mean CMD at the end of
tiangolo/uvicorn-gunicorn-fastapi:python3.10
is somehow delayed?I see that
docker-compose.override.yml
hascommand: /start-reload.sh
which executes uvicorn
however I can't understand how does
docker-compose.yml
work in productionOperating System
macOS
Operating System Details
docker
Python Version
3.9
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions