Skip to content

Conversation

A-sri-ram
Copy link

Modified the personal message to display my name. Added a docker file so that we can create Docker image from Docker container could be spawned.


COPY ./* /fastapi/
# Run FastAPI server on the port exposed above.
CMD [ "uvicorn" ,"main:app", "--host", "0.0.0.0", "--reload" ]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One other point: there's a flag for uvicorn that enables you to set the port your server will be running on. By default, it's 8000, so it works in this case without having set that flag. But keep this in mind, in case you ever run into a situation where you need to run on a different port.

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

Successfully merging this pull request may close these issues.

2 participants