-
Notifications
You must be signed in to change notification settings - Fork 0
chore: migrate from PDM to uv for dependency management #15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,12 +18,11 @@ RUN npx @tailwindcss/cli -i ./src/ui/static/input.css -o ./src/ui/static/output. | |
|
|
||
| FROM python:$PYTHON_BASE AS builder | ||
|
|
||
| RUN pip install -U pdm | ||
| ENV PDM_CHECK_UPDATE=false | ||
| COPY pyproject.toml pdm.lock /bill/ | ||
| COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/uv | ||
| COPY pyproject.toml uv.lock /bill/ | ||
|
|
||
| WORKDIR /bill | ||
| RUN pdm install --check --prod --no-editable | ||
| RUN uv sync --no-dev --no-editable | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Dockerfile missing
|
||
|
|
||
| FROM python:$PYTHON_BASE | ||
|
|
||
|
|
||


There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unpinned uv image tag reduces Docker build reproducibility
Low Severity
Using
ghcr.io/astral-sh/uv:latestcopies an unpinned version ofuvinto the build. A new uv release could change dependency resolution behavior or introduce breaking changes, causing unexpected build failures or different dependency installations across builds. The uv Docker guide recommends pinning to a specific version tag.