Skip to content

build: copy README.md into Docker build context before uv sync#135

Open
nnkogift wants to merge 1 commit into
dhis2:mainfrom
nnkogift:main
Open

build: copy README.md into Docker build context before uv sync#135
nnkogift wants to merge 1 commit into
dhis2:mainfrom
nnkogift:main

Conversation

@nnkogift
Copy link
Copy Markdown
Contributor

Summary

Fixes the Docker build failure caused by README.md missing from the build context during uv sync --frozen --no-dev.

Closes #134

What was wrong

pyproject.toml declares README.md via the readme field. When uv resolves the package during uv sync, it reads pyproject.toml and expects README.md to be present. The Dockerfile was not copying README.md before the sync step, causing the build to fail.

Changes

  • Dockerfile — added COPY README.md . before the uv sync --frozen --no-dev step

Before

COPY pyproject.toml uv.lock ./
RUN uv sync --frozen --no-dev

After

COPY pyproject.toml uv.lock README.md ./
RUN uv sync --frozen --no-dev

Testing

Confirmed the Docker build completes successfully after applying this change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

build: Docker build fails due to missing README.md in build context

1 participant