Skip to content

Commit

Permalink
Merge pull request #120 from clux/sparse
Browse files Browse the repository at this point in the history
Use sparse registries
  • Loading branch information
clux authored Mar 11, 2023
2 parents 680c2d1 + b9df7ef commit 06dc8cc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 && \
Expand Down

0 comments on commit 06dc8cc

Please sign in to comment.