This commit is contained in:
parent
8282e562ae
commit
8c2b8ca785
|
|
@ -111,7 +111,7 @@ RUN pip wheel \
|
||||||
-w /wheels
|
-w /wheels
|
||||||
|
|
||||||
# ── ✅ 打包 gradio UI 所需依赖 ────────────────────────────────────────────────
|
# ── ✅ 打包 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
|
# 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/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 $(ls /tmp/wheels | grep -v '^gradio-') && \
|
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__)" && \
|
python3 -c "import gradio, sys; print('✅ Gradio version =', gradio.__version__)" && \
|
||||||
rm -rf /tmp/wheels
|
rm -rf /tmp/wheels
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue