From dd066611791127535b0ca306afbb33bf660b1ad6 Mon Sep 17 00:00:00 2001 From: Guofang Date: Thu, 24 Sep 2026 15:31:56 +0800 Subject: [PATCH] Add Rust installation with USTC mirrors and symlink binaries in Dockerfile --- debian13/Dockerfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/debian13/Dockerfile b/debian13/Dockerfile index 8930571..56259ea 100644 --- a/debian13/Dockerfile +++ b/debian13/Dockerfile @@ -869,4 +869,10 @@ RUN curl --fail --location --output arrow.tar.gz \ && cmake --build build --parallel "$(nproc)" --target install \ && rm -rf build src +RUN export RUSTUP_DIST_SERVER="https://mirrors.ustc.edu.cn/rust-static" \ + && export RUSTUP_UPDATE_ROOT="https://mirrors.ustc.edu.cn/rust-static/rustup" \ + && bash -c "curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain stable --profile minimal --no-modify-path" + && ln -s /root/.cargo/bin/rustc /usr/local/bin/ \ + && ln -s /root/.cargo/bin/cargo /usr/local/bin/ + CMD ["/bin/bash"]