From 1c59c1ab7dfa90db66d9a6f8a46596e81cdeb44b Mon Sep 17 00:00:00 2001 From: hailin Date: Sat, 20 Sep 2025 10:45:09 +0800 Subject: [PATCH] . --- Dockerfile | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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