FastAPI-hello Using Docker to deploy a lightweight Python REST API Build the docker image docker build -t fastapi:latest . Create and run a container docker run --name fastapi -p 5057:5057 --rm fastapi:latest