This commit is contained in:
hailin 2025-07-27 15:05:16 +08:00
parent 8282e562ae
commit 8c2b8ca785
1 changed files with 2 additions and 2 deletions

View File

@ -111,7 +111,7 @@ RUN pip wheel \
-w /wheels
# ── ✅ 打包 gradio UI 所需依赖 ────────────────────────────────────────────────
RUN pip wheel "gradio==5.9.1" requests -w /wheels
RUN pip wheel "gradio==5.38.2" requests -w /wheels
###############################################################################
# Stage 2 ─ runtime极简运行镜像仅离线安装 wheel
@ -149,7 +149,7 @@ RUN ls -lh /tmp/wheels && \
python3 -m pip install --no-cache-dir --no-deps /tmp/wheels/vllm-*.whl && \
python3 -m pip install --no-cache-dir --no-deps /tmp/wheels/sgl_kernel-*.whl && \
python3 -m pip install --no-cache-dir --no-deps $(ls /tmp/wheels | grep -v '^gradio-') && \
python3 -m pip install --no-cache-dir --no-deps /tmp/wheels/gradio-5.9.1.0*.whl && \
python3 -m pip install --no-cache-dir --no-deps /tmp/wheels/gradio-5.38.2.0*.whl && \
python3 -c "import gradio, sys; print('✅ Gradio version =', gradio.__version__)" && \
rm -rf /tmp/wheels