tonistiigi/binfmt - required to use QEMU to compile for other architectures on Linux, run docker run --privileged --rm tonistiigi/binfmt --install all to set up
I'm currently using:
docker buildx build \
--progress plain \ # show full output and don't collapse on subsequent steps
--build-arg RUST_RUN_TESTS=false \ # skip tests
--build-arg RUST_RUN_AUDIT=false \ # skip audit
--platform linux/amd64 \ # or linux/arm64, or both via linux/amd64,linux/arm64
-t naftulikay/fuzzydatetime:latest \
.
And this builds for the given platforms without issue.
[ ] When TARGETPLATFORM is undefined, in docker/build-scripts/lib/functions.rs within the .rustup_target function, use dpkg --print-architecture and use this to figure out the architecture if this is unspecified.
tonistiigi/binfmt
- required to use QEMU to compile for other architectures on Linux, rundocker run --privileged --rm tonistiigi/binfmt --install all
to set upI'm currently using:
And this builds for the given platforms without issue.