Add Rust installation with USTC mirrors and symlink binaries in Dockerfile

This commit is contained in:
Guofang committed 2026-09-24 15:32:18 +08:00
1 parent aa85a6f77b
commit dd06661179
1 file changed
+6
+6
View File
@@ -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"]