Remove musl

This commit is contained in:
Erald Totraku
2024-01-04 13:56:24 +01:00
parent bf4f9e7398
commit c9a528af64
3 changed files with 5 additions and 17 deletions
+2 -3
View File
@@ -8,11 +8,10 @@ RUN apk add --no-cache curl jq && \
MOD_VERSION=$(curl -s https://api.github.com/repos/rust-lang/rust/releases/latest | jq -r .tag_name); \
fi && \
mkdir -p /root-layer/rust-bins && \
SUPPORTED_PLATFORMS="x86_64-unknown-linux-musl x86_64-unknown-linux-gnu aarch64-unknown-linux-musl aarch64-unknown-linux-gnu" && \
SUPPORTED_PLATFORMS="x86_64-unknown-linux-gnu aarch64-unknown-linux-gnu" && \
for PLATFORM in $SUPPORTED_PLATFORMS; do \
ARCH=${PLATFORM%%-*}; \
MUSL_OR_GNU=${PLATFORM##*-}; \
RUST_BINS=/root-layer/rust-bins/rust-${ARCH}-${MUSL_OR_GNU}.tar.gz; \
RUST_BINS=/root-layer/rust-bins/rust-${ARCH}-gnu.tar.gz; \
RUST_BINS_URL=https://static.rust-lang.org/dist/rust-${MOD_VERSION}-${PLATFORM}.tar.gz; \
echo "Downloading rust for $PLATFORM"; \
curl -o $RUST_BINS -sSf $RUST_BINS_URL; \