Update Dockerfile.ci to install vllm package directly from wheel file

- Changed the pip install command for vllm to download the wheel file directly instead of using an extra index URL, ensuring a more reliable installation process.
- Added a fallback option to install the pre-release version of vllm if the direct installation fails.

Signed-off-by: tzhouam <tzhouam@connect.ust.hk>
This commit is contained in:
tzhouam committed 2026-01-29 08:05:57 +00:00
1 parent 478c036a01
commit fea328364a
1 file changed
+4 -1
+4 -1
View File
@@ -11,7 +11,10 @@ RUN apt-get update && \
rm -rf /var/lib/apt/lists/*
# Install vLLM wheel for the specific commit
RUN uv pip install --system --upgrade --force-reinstall vllm --extra-index-url https://wheels.vllm.ai/706f123b23b75097da9a3f51ce538bd784fdc75b
# 正确的格式应该是直接下载 wheel 文件,而不是使用 extra-index-url
RUN pip install https://wheels.vllm.ai/nightly/706f123b23b75097da9a3f51ce538bd784fdc75b/vllm-1.0.0.dev-cp310-cp310-manylinux1_x86_64.whl \
|| pip install vllm --pre --extra-index-url https://wheels.vllm.ai/nightly
# Install vllm-omni into the same uv-managed Python environment used by the base image.
RUN uv pip install --system --no-cache-dir ".[dev]"
RUN ln -sf /usr/bin/python3 /usr/bin/python