Containers built with the standard Dockerfile exit immediately with code 2. The image builds successfully, but the default CMD (uv run uvicorn ...) fails at startup because uv tries to resolve a local editable dependency that is not present in the image.
error: Distribution not found at: file:///fairscape/fairscape_graph_tools
Steps to reproduce
Build:
docker build -f Dockerfile -t fairscape/mds_python:local .
Run:
docker run --rm fairscape/mds_python:local
Container exits with code 2 immediately.
Cause:
pyproject.toml declares a dev-only path source:
[tool.uv.sources]
fairscape_graph_tools = { path = "../fairscape_graph_tools", editable = true }
Containers built with the standard Dockerfile exit immediately with code 2. The image builds successfully, but the default CMD (uv run uvicorn ...) fails at startup because uv tries to resolve a local editable dependency that is not present in the image.
Steps to reproduce
Build:
docker build -f Dockerfile -t fairscape/mds_python:local .Run:
docker run --rm fairscape/mds_python:localContainer exits with code 2 immediately.
Cause:
pyproject.toml declares a dev-only path source: