build: fix rustup

This commit is contained in:
An0nX
2026-03-05 21:03:39 +03:00
committed by GitHub
parent 4cbe195e99
commit 03c8be3611

View File

@@ -20,8 +20,16 @@ RUN --mount=type=cache,target=/var/cache/apk \
zlib-dev zlib-static \
&& update-ca-certificates
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs \
| sh -s -- -y --default-toolchain stable --profile minimal
RUN set -eux; \
case "$(apk --print-arch)" in \
x86_64) ARCH=x86_64 ;; \
aarch64) ARCH=aarch64 ;; \
*) echo "unsupported arch: $(apk --print-arch)"; exit 1 ;; \
esac; \
curl -fsSL "https://static.rust-lang.org/rustup/dist/${ARCH}-unknown-linux-musl/rustup-init" -o /tmp/rustup-init; \
chmod +x /tmp/rustup-init; \
/tmp/rustup-init -y --default-toolchain stable --profile minimal; \
rm /tmp/rustup-init
ENV CARGO_NET_GIT_FETCH_WITH_CLI=true \
CARGO_TERM_COLOR=always \