This commit is contained in:
parent
35ba2eab42
commit
6ea2139b82
|
|
@ -110,7 +110,7 @@ RUN pip wheel \
|
|||
|
||||
# ── ✅ 打包 gradio UI 所需依赖 ────────────────────────────────────────────────
|
||||
RUN pip wheel gradio requests -w /wheels
|
||||
|
||||
|
||||
###############################################################################
|
||||
# Stage 2 ─ runtime:极简运行镜像,仅离线安装 wheel
|
||||
###############################################################################
|
||||
|
|
@ -140,6 +140,7 @@ COPY --from=builder-extras /tmp/sgl_kernel_wheel /tmp/sgl_kernel_wheel
|
|||
# ✅ 优先装你自编的 torch,避免被 PyPI 上的覆盖
|
||||
RUN ls -lh /tmp/wheels && \
|
||||
rm -f /tmp/wheels/torch-2.7.1a0+*.whl && \
|
||||
rm -f /tmp/wheels/huggingface_hub-0.33.4*.whl && \
|
||||
python3 -m pip install --no-cache-dir --no-deps /tmp/wheels/torch*.whl && \
|
||||
python3 -m pip install --no-cache-dir --no-deps /tmp/wheels/vllm-*.whl && \
|
||||
python3 -m pip install --no-cache-dir --no-deps /tmp/sgl_kernel_wheel/*.whl && \
|
||||
|
|
|
|||
Loading…
Reference in New Issue