refactor(docker): switch to uv for dependency management - #447
Open
franciscomfcmaia wants to merge 3 commits into
Open
refactor(docker): switch to uv for dependency management#447franciscomfcmaia wants to merge 3 commits into
franciscomfcmaia wants to merge 3 commits into
Conversation
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
Owner
|
Hi and thanks for the PR! I currently don't see any changes in the commit, can you look into this? |
Author
|
You're absolutely right! Not sure what happened — the changes didn’t make it into the commit. |
tfeldmann
reviewed
Jun 5, 2025
| COPY pyproject.toml poetry.lock ./ | ||
| RUN poetry install --only=main --no-interaction | ||
|
|
||
| RUN pip install uv |
Owner
There was a problem hiding this comment.
Can you change this to the officially recommended installation method?
https://docs.astral.sh/uv/guides/integration/docker/#installing-uv
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Switched from Poetry to uv to improve install speed and support for hashed dependencies.
poetry installwithuv venv,uv pip compile, anduv pip installrequirements.txtwith hashes for reproducible buildsChange Summary
Replaced Poetry with
uvfor 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