Closed bodom0015 closed 1 year ago
arm64 variant of frontend images builds very slowly
arm64
This will mainly affect developers with newer Macbook machines that use the newer M1 or M2 processors, which use the arm64 chipset
@robkooper recommended adding --platform=$BUILDPLATFORM
--platform=$BUILDPLATFORM
This should allow you to pull the image native to the host that you're using to build the image, which should speed up the build
Wait for the Checks tab to succeed here, then check the timing
To emulate building on arm64:
$ docker buildx build --platform=linux/arm64 . --no-cache
Problem
arm64
variant of frontend images builds very slowlyThis will mainly affect developers with newer Macbook machines that use the newer M1 or M2 processors, which use the
arm64
chipsetApproach
@robkooper recommended adding
--platform=$BUILDPLATFORM
This should allow you to pull the image native to the host that you're using to build the image, which should speed up the build
How to Test
Wait for the Checks tab to succeed here, then check the timing
To emulate building on
arm64
: