This commit is contained in:
parent
82e5957f8e
commit
0b560f7067
|
|
@ -111,7 +111,7 @@ RUN pip wheel \
|
||||||
-w /wheels
|
-w /wheels
|
||||||
|
|
||||||
# ── ✅ 打包 gradio UI 所需依赖 ────────────────────────────────────────────────
|
# ── ✅ 打包 gradio UI 所需依赖 ────────────────────────────────────────────────
|
||||||
RUN pip wheel gradio requests -w /wheels
|
RUN pip wheel "gradio==4.49.0" requests -w /wheels
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
# Stage 2 ─ runtime:极简运行镜像,仅离线安装 wheel
|
# 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/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/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/sgl_kernel-*.whl && \
|
||||||
python3 -m pip install --no-cache-dir --no-deps /tmp/wheels/* && \
|
python3 -m pip install --no-cache-dir --no-deps $(ls /tmp/wheels | grep -v '^gradio-') && \
|
||||||
python3 -m pip install --no-cache-dir --upgrade "gradio>=4.44" && \
|
python3 -m pip install --no-cache-dir --no-deps /tmp/wheels/gradio-4.49.0*.whl && \
|
||||||
python3 -c "from torch.distributed import Backend; print('✅ Runtime torch distributed OK, GLOO =', Backend.GLOO)" && \
|
python3 -c "import gradio, sys; print('✅ Gradio version =', gradio.__version__)" && \
|
||||||
rm -rf /tmp/wheels
|
rm -rf /tmp/wheels
|
||||||
|
|
||||||
# ✅ 安装 Prometheus client
|
# ✅ 安装 Prometheus client
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue