HUB
Sign inSign up

stellarhub/fastapi

By stellarhub

•Updated over 5 years ago

Image
0

208

stellarhub/fastapi repository overview

A docker image of Python with FastAPI

Recommended to map a volume for easier code access
docker run -it -v ~/src:/root/src -p 8000:8000 --name fastapi stellarhub/fastapi

As the docker is running under a different IP from the host, you need to add "--host 0.0.0.0" to the uvicorn command The following is an example
uvicorn src/main:app --reload --host 0.0.0.0 --port 8000

Tag summary

Content type

Image

Digest

Size

113 MB

Last updated

over 5 years ago

docker pull stellarhub/fastapi