Docker and CI/CD · Senior · Question 16 of 75

Why can a multi-platform build be very slow on CI, and what helps?

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.

Further reading

Problem with a question

Docker and CI/CD · Senior · question 16

Test yourself

Take the Docker and CI/CD · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz