Docker and CI/CD · Senior · Question 16 of 75
Why can a multi-platform build be very slow on CI, and what helps?
- 1BuildKit disables caching whenever more than one platform is set
- ✓Correct answer: Foreign arches run under QEMU; use native builders or cross-compile
- 3Each platform must be pushed to a separate registry one by one
Explanation
Emulating arm64 on amd64 can be many times slower, especially for native module compilation. Native arm64 runners or --platform=$BUILDPLATFORM with cross-compilation avoid it.