Remove architecture-specific SHA256 checks for rustup installation in Dockerfile
This commit is contained in:
1 parent
524b90737e
commit
0563551eed
1 file changed
-6
@@ -32,14 +32,8 @@ RUN git config --global url."https://wangguofang.net/github.com/".insteadOf "htt
|
|||||||
RUN RUSTUP_VERSION=1.28.2 \
|
RUN RUSTUP_VERSION=1.28.2 \
|
||||||
&& RUST_VERSION=1.98.0 \
|
&& RUST_VERSION=1.98.0 \
|
||||||
&& RUST_ARCH="$(uname -m)" \
|
&& RUST_ARCH="$(uname -m)" \
|
||||||
&& case "$RUST_ARCH" in \
|
|
||||||
x86_64) RUSTUP_SHA256=20a06e644b0d9bd2fbdbfd52d42540bdde820ea7df86e92e533c073da0cdd43c ;; \
|
|
||||||
aarch64) RUSTUP_SHA256=e3853c5a252fca15252d07cb23a1bdd9377a8c6f3efa01531109281ae47f841c ;; \
|
|
||||||
*) echo "Unsupported architecture: $RUST_ARCH" >&2; exit 1 ;; \
|
|
||||||
esac \
|
|
||||||
&& curl --fail --location --output rustup-init \
|
&& curl --fail --location --output rustup-init \
|
||||||
"https://static.rust-lang.org/rustup/archive/${RUSTUP_VERSION}/${RUST_ARCH}-unknown-linux-gnu/rustup-init" \
|
"https://static.rust-lang.org/rustup/archive/${RUSTUP_VERSION}/${RUST_ARCH}-unknown-linux-gnu/rustup-init" \
|
||||||
&& echo "${RUSTUP_SHA256} rustup-init" | sha256sum --check - \
|
|
||||||
&& chmod +x rustup-init \
|
&& chmod +x rustup-init \
|
||||||
&& ./rustup-init -y --default-toolchain none \
|
&& ./rustup-init -y --default-toolchain none \
|
||||||
&& "$HOME/.cargo/bin/rustup" --version \
|
&& "$HOME/.cargo/bin/rustup" --version \
|
||||||
|
|||||||
Reference in new issue
Block a user