Images based on the Arm architecture, such as Raspberry Pi images, need to be built using the Arm resources rather than the default x86_64 resources that the Docker executor uses. This is because different binaries are required for different platforms.
Add resource_class: arm.medium to your executor
You should now be able to build on arm.
If you’d like to run jobs on Arm, check out the Arm preview documentation.