From b9df7ef4f5b697cd7978e0d560c642f6cd72a611 Mon Sep 17 00:00:00 2001 From: clux Date: Sat, 11 Mar 2023 10:57:44 +0000 Subject: [PATCH] Use sparse registries Signed-off-by: clux --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index a202465..c6c9b31 100644 --- a/Dockerfile +++ b/Dockerfile @@ -38,7 +38,9 @@ RUN apt-get update && apt-get install -y \ # Install rust using rustup ARG CHANNEL ENV RUSTUP_VER="1.25.1" \ - RUST_ARCH="x86_64-unknown-linux-gnu" + RUST_ARCH="x86_64-unknown-linux-gnu" \ + CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse + RUN curl "https://static.rust-lang.org/rustup/archive/${RUSTUP_VER}/${RUST_ARCH}/rustup-init" -o rustup-init && \ chmod +x rustup-init && \ ./rustup-init -y --default-toolchain ${CHANNEL} --profile minimal --no-modify-path && \