Hi there, thanks for the helpful examples! However, I ran into a small issue: using run.sh without any arguments produces an error:
$ ./run.sh
To use the fastapi command, please install "fastapi[standard]":
pip install "fastapi[standard]"
Traceback (most recent call last):
File "/app/.venv/bin/fastapi", line 8, in <module>
sys.exit(main())
^^^^^^
File "/app/.venv/lib/python3.12/site-packages/fastapi/cli.py", line 12, in main
raise RuntimeError(message) # noqa: B904
^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: To use the fastapi command, please install "fastapi[standard]":
pip install "fastapi[standard]"
Since fastapi 0.112.0, fastapi-cli is no longer included by default and must be installed using the standard extra. For example:
# pyproject.toml
[project]
name = "uv-docker-example"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.11"
dependencies = [
"fastapi[standard]>=0.112.2",
]
Hi there, thanks for the helpful examples! However, I ran into a small issue: using
run.sh
without any arguments produces an error:Since fastapi 0.112.0,
fastapi-cli
is no longer included by default and must be installed using the standard extra. For example: