From d2f5cf5ae5e302a2d1cb83d3ffdd83d9c3e56e08 Mon Sep 17 00:00:00 2001 From: hotwa Date: Sat, 25 May 2024 19:55:39 +0800 Subject: [PATCH] update rust install --- spawnerdockerfile/Dockerfile.base-notebook | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/spawnerdockerfile/Dockerfile.base-notebook b/spawnerdockerfile/Dockerfile.base-notebook index f9cb670..cf74c55 100755 --- a/spawnerdockerfile/Dockerfile.base-notebook +++ b/spawnerdockerfile/Dockerfile.base-notebook @@ -151,11 +151,24 @@ mamba activate mojo && modular install mojo mamba run -n mojo python -m ipykernel install --user --name="mojo" --display-name="mojo_env" EOT -# Install Rust +# Install Rust https://rsproxy.cn/#getStarted +ENV RUSTUP_DIST_SERVER="https://rsproxy.cn" +ENV RUSTUP_UPDATE_ROOT="https://rsproxy.cn/rustup" ENV PATH="/home/${CREATE_USER}/.cargo/bin:$PATH" +ENV CARGO_UNSTABLE_SPARSE_REGISTRY="true" RUN <> ~/.cargo/config.toml source $HOME/.cargo/env cargo install evcxr_jupyter evcxr_jupyter --install