This commit is contained in:
hailin 2025-07-02 13:17:21 +08:00
parent d5b8242ecc
commit a0bde3ead4
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ 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 $(find /tmp/torch_dist -name "torch-2.7.1+cu126*.whl") && rm -rf /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
# ── 编译 torchvision 0.22.1 (依赖本地 torch) ────────────────────────────────
WORKDIR /opt