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