Replace Rust installation with aria2 downloads from multiple mirrors
This commit is contained in:
1 parent
86f11507e1
commit
5222ae6843
1 file changed
+12
-5
+12
-5
@@ -879,10 +879,17 @@ RUN curl --fail --location --output arrow.tar.gz \
|
|||||||
&& cmake --build build --parallel "$(nproc)" --target install \
|
&& cmake --build build --parallel "$(nproc)" --target install \
|
||||||
&& rm -rf build src
|
&& rm -rf build src
|
||||||
|
|
||||||
RUN export RUSTUP_DIST_SERVER="https://mirrors.ustc.edu.cn/rust-static" \
|
RUN aria2c \
|
||||||
&& export RUSTUP_UPDATE_ROOT="https://mirrors.ustc.edu.cn/rust-static/rustup" \
|
--max-connection-per-server=1 --retry-wait=3 \
|
||||||
&& bash -c "curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain stable --profile minimal --no-modify-path" \
|
--out=rust.tar.xz \
|
||||||
&& ln -s /root/.cargo/bin/rustc /usr/local/bin/ \
|
https://mirrors.cloud.tencent.com/rustup/dist/rust-1.99.1-x86_64-unknown-linux-gnu.tar.xz \
|
||||||
&& ln -s /root/.cargo/bin/cargo /usr/local/bin/
|
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"]
|
CMD ["/bin/bash"]
|
||||||
Reference in new issue
Block a user