LukeMathWalker / cargo-chef

A cargo-subcommand to speed up Rust Docker builds using Docker layer caching.
Apache License 2.0
1.72k stars 113 forks source link

Support Docker image for i386 and arm32v7 architectures #226

Open MPThLee opened 1 year ago

MPThLee commented 1 year ago

Issue #, if available: Fixes #182

Description of changes: Add i386 and arm32v7 to Docker image build platform. (Following upstream image's architectures)

Official rust docker image is depends on rustup. And rustup doesn't support i386 and arm/v7 for musl(alpine) target. This PR adds build target 'i386' and 'arm/v7' on non-alpine target. According to https://github.com/LukeMathWalker/cargo-chef/issues/182#issuecomment-1616805177, this should be ok. Note: latest is always Debian based.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.