Navigate to this folder (where the pyproject.toml file is)
Run:
poetry build-projectdocker build -t myimage .docker run -d --name mycontainer -p 8000:8000 myimageThe OpenAPI specification of this FastAPI app can now be accessed at http://localhost:8000/docs#