From dc3aa8c90d50eb5e2872738eb86a48a423f9570b Mon Sep 17 00:00:00 2001 From: hailin Date: Thu, 3 Jul 2025 09:25:54 +0800 Subject: [PATCH] . --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index c5281e8..c104085 100644 --- a/Dockerfile +++ b/Dockerfile @@ -72,9 +72,11 @@ RUN pip install . && \ python3 -m pip wheel . --no-deps -w dist/ -# builder-extras 阶段,vllm 安装(兼容 torch 2.7.1) +# builder-extras 阶段:补充工具链 + 安装 vllm WORKDIR /opt -RUN pip install setuptools_scm && \ +RUN apt-get update && apt-get install -y --no-install-recommends \ + ninja-build cmake build-essential python3-dev git && \ + pip install setuptools wheel setuptools_scm && \ git clone -b v0.9.1 https://github.com/vllm-project/vllm.git && \ cd vllm && \ python3 -m pip install . --no-build-isolation --no-deps && \