From 0b560f70679387a8c25fb4776d7450ac831ab2eb Mon Sep 17 00:00:00 2001 From: hailin Date: Sun, 27 Jul 2025 15:00:44 +0800 Subject: [PATCH] . --- Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 60d041a..e99634a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -111,7 +111,7 @@ RUN pip wheel \ -w /wheels # ── ✅ 打包 gradio UI 所需依赖 ──────────────────────────────────────────────── -RUN pip wheel gradio requests -w /wheels +RUN pip wheel "gradio==4.49.0" requests -w /wheels ############################################################################### # Stage 2 ─ runtime:极简运行镜像,仅离线安装 wheel @@ -148,9 +148,9 @@ RUN ls -lh /tmp/wheels && \ 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/wheels/sgl_kernel-*.whl && \ - python3 -m pip install --no-cache-dir --no-deps /tmp/wheels/* && \ - python3 -m pip install --no-cache-dir --upgrade "gradio>=4.44" && \ - python3 -c "from torch.distributed import Backend; print('✅ Runtime torch distributed OK, GLOO =', Backend.GLOO)" && \ + 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-4.49.0*.whl && \ + python3 -c "import gradio, sys; print('✅ Gradio version =', gradio.__version__)" && \ rm -rf /tmp/wheels # ✅ 安装 Prometheus client