This commit is contained in:
hailin 2025-07-02 14:24:37 +08:00
parent 965e97adb0
commit 75f8fee8e9
1 changed files with 2 additions and 1 deletions

View File

@ -44,7 +44,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
COPY --from=builder-torch /opt/pytorch/dist /tmp/torch_dist
RUN set -e && \
echo "==> Files in /tmp/torch_dist:" && ls -lh /tmp/torch_dist && \
find /tmp/torch_dist -name 'torch-*.whl' -print | xargs -r python3 -m pip install --no-cache-dir && \
find /tmp/torch_dist -name 'torch-*.whl' -print | xargs -r python3 -m pip install --no-cache-dir
# ── 编译 torchvision 0.22.1 (依赖本地 torch) ────────────────────────────────