DEV Community

Discussion on: Getting Started with Docker & Fast API 🚀🚀

Collapse
 
artyomovs profile image
artyomovs • Edited


CMD [ "python", "app.py" ]

Does it work on your computer? I think, you confused with Flask.
Cause I managed to run FastAPI with uvicorn only this way:

CMD [ "uvicorn", "app:app", "--host", "0.0.0.0", "--reload" ]

Collapse
 
grayhat profile image
Mwenda Harun Mbaabu

It is an alternative, and yes it is working on my computer