-# Prepare toolchain
-# Docker and Rust use different architecture naming schemas, so we have to convert them
-RUN case $TARGETARCH in \
- arm64) RUSTARCH=aarch64 ;; \
- amd64) RUSTARCH=x86_64 ;; \
- *) echo "unsupported architecture: $TARGETARCH"; exit 3 ;; \
- esac \
- && echo "RUSTARCH=$RUSTARCH" >> .buildenv