We need to have risc0 available in docker containers. Modern macs are aarch64 machines. When you run docker on mac, a aarch64 VM will be used. It's possible to use x86-64, but those would run slower.
Unfortunately, risc0 binaries are not built for aarch64 linux. risc0/risc0#1286
There are two general approaches that I found.
It's possible to use qemu for system emulation. I managed to build both on macOS and on nixOS.