From e3792ef8e1054e2c34177f4accc2276ab9bf127b Mon Sep 17 00:00:00 2001 From: hailin Date: Wed, 2 Jul 2025 13:18:43 +0800 Subject: [PATCH] . --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 070ad9b..5e80a8a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -42,7 +42,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ # ── 安装自编 torch 轮子 ────────────────────────────────────────────────────── COPY --from=builder-torch /opt/pytorch/dist /tmp/torch_dist -RUN python3 -m pip install --no-cache-dir /tmp/torch_dist/torch-2.7.1+cu126*.whl && rm -rf /tmp/torch_dist +RUN sh -c 'python3 -m pip install --no-cache-dir /tmp/torch_dist/torch-2.7.1+cu126*.whl' && rm -rf /tmp/torch_dist + # ── 编译 torchvision 0.22.1 (依赖本地 torch) ──────────────────────────────── WORKDIR /opt