Skip to content

Commit

Permalink
split rustup target for aarch64 only
Browse files Browse the repository at this point in the history
  • Loading branch information
iker-barriocanal committed Oct 10, 2023
1 parent 681d3f3 commit 8e3400b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 8e3400b

Please sign in to comment.