Currently if you use the i686 image on an x86_64 host (or armv7 on an aarch64 host) rustup tries to download the x86_64 (or aarch64) binaries. This won't work because the dependencies installed by apt are still i686 (or armv7).
This pr ensures that the arch of the applications installed by rustup always matches the arch of the dependencies installed by apt. No matter the cpu arch this image is running on.
This allows the building of derived images for i686 on x86_64 hosts, and armv7 images on aarch64 hosts.
Currently if you use the i686 image on an x86_64 host (or armv7 on an aarch64 host) rustup tries to download the x86_64 (or aarch64) binaries. This won't work because the dependencies installed by apt are still i686 (or armv7).
This pr ensures that the arch of the applications installed by rustup always matches the arch of the dependencies installed by apt. No matter the cpu arch this image is running on.
This allows the building of derived images for i686 on x86_64 hosts, and armv7 images on aarch64 hosts.