The Dockerfile downloads mongosh-${VERSION}-linux-x64.tgz (x86_64 only). On M-series Macs, Docker Desktop runs the build through Rosetta emulation, which fails to execute the x86_64 mongosh binary with:
rosetta error: failed to open elf at /lib64/ld-linux-x86-64.so.2
Trace/breakpoint trap
This causes exit code 133 (128 + SIGTRAP/5).
The Dockerfile downloads
mongosh-${VERSION}-linux-x64.tgz(x86_64 only). On M-series Macs, Docker Desktop runs the build through Rosetta emulation, which fails to execute the x86_64 mongosh binary with:This causes exit code 133 (128 + SIGTRAP/5).