This commit is contained in:
hailin 2025-07-03 09:25:54 +08:00
parent 355ba36f37
commit dc3aa8c90d
1 changed files with 4 additions and 2 deletions

View File

@ -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 && \