Skip to content

Dockerfile Crashes at Runtime #60

Description

@dectris-jacs

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 }

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions