Skip to content

Use Debian base image with uv from Docker registry#2952

Merged
adamtheturtle merged 2 commits intomainfrom
adamtheturtle/uv-docker-base-image
Feb 18, 2026
Merged

Use Debian base image with uv from Docker registry#2952
adamtheturtle merged 2 commits intomainfrom
adamtheturtle/uv-docker-base-image

Conversation

@adamtheturtle
Copy link
Member

@adamtheturtle adamtheturtle commented Feb 18, 2026

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:

  • Reduces complexity by eliminating the need to create a venv and install uv within it
  • Allows uv to manage Python installation automatically
  • Follows the uv Docker integration guide more closely

Test Plan

  • Verified the Dockerfile builds and runs with: docker build -t vws-test -f src/mock_vws/_flask_server/Dockerfile .
  • Verified the image works with healthcheck and Flask server startup

🤖 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/Dockerfile base image from python:3.13-slim to the official ghcr.io/astral-sh/uv:0.10.4-python3.13-*-slim image.

Removes manual virtualenv creation and pip install uv, relying on the prebuilt uv image and simplifying the build step to just uv sync --no-cache while keeping the existing entrypoint/healthcheck and service stages.

Written by Cursor Bugbot for commit 1c73ee7. This will update automatically on new commits. Configure here.

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>
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

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>
@adamtheturtle adamtheturtle merged commit 9969e81 into main Feb 18, 2026
106 checks passed
@adamtheturtle adamtheturtle deleted the adamtheturtle/uv-docker-base-image branch February 18, 2026 13:30
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.

1 participant