Use Debian base image with uv from Docker registry#2952
Merged
adamtheturtle merged 2 commits intomainfrom Feb 18, 2026
Merged
Conversation
Replaces python:3.13-slim with debian:bookworm-slim and installs uv directly from ghcr.io/astral-sh/uv:0.10.4, eliminating the need to create a Python venv first and install uv via pip. uv now manages Python installation automatically. This follows the uv Docker integration guide more closely. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.
ghcr.io/astral-sh/uv:0.10.4-python3.13-trixie-slim includes both uv and Python 3.13, avoiding the need to download a managed Python at build time which caused Docker builds in tests to be 3-4x slower. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
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.
Summary
Replaces the Python base image with Debian bookworm-slim and installs uv directly from the official Docker image (ghcr.io/astral-sh/uv:0.10.4) instead of via pip. This approach:
Test Plan
docker build -t vws-test -f src/mock_vws/_flask_server/Dockerfile .🤖 Generated with Claude Code
Note
Medium Risk
Changes the container base image and dependency installation mechanism, which can alter runtime libc/OS behavior and Python environment resolution. Risk is mainly build/deploy compatibility rather than application logic.
Overview
Switches the
src/mock_vws/_flask_server/Dockerfilebase image frompython:3.13-slimto the officialghcr.io/astral-sh/uv:0.10.4-python3.13-*-slimimage.Removes manual virtualenv creation and
pip install uv, relying on the prebuiltuvimage and simplifying the build step to justuv sync --no-cachewhile keeping the existing entrypoint/healthcheck and service stages.Written by Cursor Bugbot for commit 1c73ee7. This will update automatically on new commits. Configure here.