From 8e3400b227350e60bb746c4bcd3b80f75584ba79 Mon Sep 17 00:00:00 2001 From: Iker Barriocanal <32816711+iker-barriocanal@users.noreply.github.com> Date: Tue, 10 Oct 2023 14:55:40 +0200 Subject: [PATCH] split rustup target for aarch64 only --- Dockerfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0abe4b4171..dbc44ac909 100644 --- a/Dockerfile +++ b/Dockerfile @@ -39,8 +39,11 @@ ENV RUSTUP_HOME=/usr/local/rustup \ RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs \ | sh -s -- -y --profile minimal --default-toolchain=${RUST_TOOLCHAIN_VERSION} \ - && echo -e '[registries.crates-io]\nprotocol = "sparse"\n[net]\ngit-fetch-with-cli = true' > $CARGO_HOME/config \ - && rustup target add aarch64-unknown-linux-gnu + && echo -e '[registries.crates-io]\nprotocol = "sparse"\n[net]\ngit-fetch-with-cli = true' > $CARGO_HOME/config + +RUN if [ ${BUILD_ARCH} == "aarch64" ]; then \ + rustup target add aarch64-unknown-linux-gnu ; \ + fi COPY --from=sentry-cli /bin/sentry-cli /bin/sentry-cli