From 5222ae68437174465b7837fd352eba2c8c75ef56 Mon Sep 17 00:00:00 2001 From: Guofang Date: Thu, 22 Oct 2026 14:40:05 +0800 Subject: [PATCH] Replace Rust installation with aria2 downloads from multiple mirrors --- debian13/Dockerfile | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/debian13/Dockerfile b/debian13/Dockerfile index eedd13d..2e698cf 100644 --- a/debian13/Dockerfile +++ b/debian13/Dockerfile @@ -879,10 +879,17 @@ 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/ +RUN aria2c \ + --max-connection-per-server=1 --retry-wait=3 \ + --out=rust.tar.xz \ + https://mirrors.cloud.tencent.com/rustup/dist/rust-1.99.1-x86_64-unknown-linux-gnu.tar.xz \ + https://mirrors.tuna.tsinghua.edu.cn/rustup/dist/2026-10-15/rust-1.99.1-x86_64-unknown-linux-gnu.tar.xz \ + https://repo.huaweicloud.com/rustup/dist/rust-1.99.1-x86_64-unknown-linux-gnu.tar.xz \ + https://mirrors.ustc.edu.cn/rust-static/dist/rust-1.99.1-x86_64-unknown-linux-gnu.tar.xz \ + https://static.rust-lang.org/dist/rust-1.99.1-x86_64-unknown-linux-gnu.tar.xz \ + && mkdir rust-src \ + && tar -xJf rust.tar.xz -C rust-src --strip-components=1 \ + && rust-src/install.sh --prefix=/usr/local --without=rust-docs \ + && rm -rf rust.tar.xz rust-src CMD ["/bin/bash"]