File tree 1 file changed +5
-1
lines changed 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,11 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
14
14
15
15
# Install the currently pinned toolchain with rustup
16
16
COPY rust-toolchain /tmp/
17
- RUN curl https://static.rust-lang.org/rustup/dist/x86_64-unknown-linux-gnu/rustup-init >/tmp/rustup-init && \
17
+ ENV RUSTUP_VERSION="1.24.3"
18
+ ENV RUSTUP_TRIPLE="x86_64-unknown-linux-gnu"
19
+ ENV RUSTUP_SHA="3dc5ef50861ee18657f9db2eeb7392f9c2a6c95c90ab41e45ab4ca71476b4338"
20
+ RUN curl "https://static.rust-lang.org/rustup/archive/${RUSTUP_VERSION}/${RUSTUP_TRIPLE}/rustup-init" >/tmp/rustup-init && \
21
+ echo "${RUSTUP_SHA} /tmp/rustup-init" | sha256sum --check && \
18
22
chmod +x /tmp/rustup-init && \
19
23
/tmp/rustup-init -y --no-modify-path --default-toolchain $(cat /tmp/rust-toolchain)
20
24
ENV PATH=/root/.cargo/bin:$PATH
You can’t perform that action at this time.
0 commit comments