Skip to content

Conversation

@franciscomfcmaia
Copy link

Switched from Poetry to uv to improve install speed and support for hashed dependencies.

  • Replaced poetry install with uv venv, uv pip compile, and uv pip install
  • Introduced requirements.txt with hashes for reproducible builds
  • Simplified dependency layer and maintained multi-stage build structure

Change Summary

Replaced Poetry with uv for managing Python dependencies in the Docker build process. This improves installation speed, ensures hash-verified reproducible builds, and simplifies the dependency management layer in the image.

Related issue number

N/A

Checklist

  • Tests for the changes exist and pass on CI
  • Documentation reflects the changes where applicable
  • Change is documented in CHANGELOG.md (if applicable)
  • My PR is ready to review

Switched from Poetry to uv to improve install speed and support for hashed dependencies.
- Replaced `poetry install` with `uv venv`, `uv pip compile`, and `uv pip install`
- Introduced `requirements.txt` with hashes for reproducible builds
- Simplified dependency layer and maintained multi-stage build structure
@tfeldmann
Copy link
Owner

Hi and thanks for the PR! I currently don't see any changes in the commit, can you look into this?

@franciscomfcmaia
Copy link
Author

You're absolutely right! Not sure what happened — the changes didn’t make it into the commit.

COPY pyproject.toml poetry.lock ./
RUN poetry install --only=main --no-interaction

RUN pip install uv
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you change this to the officially recommended installation method?
https://docs.astral.sh/uv/guides/integration/docker/#installing-uv

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.

2 participants