diff --git a/Dockerfile b/Dockerfile index 70f3c9d45..9ca4d70c5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -62,11 +62,8 @@ RUN set -e && \ python3 -m pip install --no-cache-dir \ "typing-extensions>=4.10.0" "sympy>=1.13.3" jinja2 fsspec networkx filelock - -RUN python3 - <<'PY' - import torch, typing_extensions, sympy, jinja2, fsspec, networkx - print("✅ Torch:", torch.__version__) - PY +RUN python3 -c "import torch, typing_extensions, sympy, jinja2, fsspec, networkx; print('✅ Torch:', torch.__version__)" + # ── 编译 torchvision 0.22.1 (依赖本地 torch) ──────────────────────────────── WORKDIR /opt