Skip to content

fix: pin Python to 3.12 in vLLM and SGLang build stages#883

Merged
ericcurtin merged 1 commit into
mainfrom
pin-python312-vllm-sglang
Apr 23, 2026
Merged

fix: pin Python to 3.12 in vLLM and SGLang build stages#883
ericcurtin merged 1 commit into
mainfrom
pin-python312-vllm-sglang

Conversation

@ericcurtin
Copy link
Copy Markdown
Contributor

Summary

  • Replace generic python3/python3-venv/python3-dev apt packages with explicit python3.12 variants in both the vLLM and SGLang Dockerfile build stages to ensure a consistent Python runtime across distro updates.
  • Simplify the vLLM install: let uv resolve the interpreter via --python 3.12 instead of pointing at /usr/bin/python3, and use the cu130 wheels index with --index-strategy unsafe-best-match.
  • Simplify the SGLang install similarly, using --python 3.12 with uv.
  • Update the version-check commands to call python3.12 explicitly.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request migrates the Dockerfile to Python 3.12 and updates CUDA dependencies to version 13.0. Review feedback identifies critical issues where the uv pip install commands lack explicit virtual environment paths and the hardcoding of the CUDA version ignores established build arguments.

Comment thread Dockerfile
Comment thread Dockerfile
Replace generic python3/python3-venv/python3-dev packages with
explicit python3.12 variants to ensure a consistent runtime across
distro updates. Simplify the vLLM install by letting uv resolve the
Python version (--python 3.12) and using unsafe-best-match index
strategy with the cu130 wheels index.

Signed-off-by: Eric Curtin <eric.curtin@docker.com>
@ericcurtin ericcurtin force-pushed the pin-python312-vllm-sglang branch from 13b2df7 to 5f7cd48 Compare April 23, 2026 11:45
@ericcurtin ericcurtin merged commit 416729b into main Apr 23, 2026
13 checks passed
@ericcurtin ericcurtin deleted the pin-python312-vllm-sglang branch April 23, 2026 12:19
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