Found by @KBach while testing https://gerrit.wikimedia.org/r/c/wikimedia/developer-portal/+/835289.
=> [ 7/10] COPY --chown=501:20 [pyproject.toml, poetry.lock, ./] => => # qemu: uncaught target signal 11 (Segmentation fault) - core dumped
Similar to https://github.com/docker/for-mac/issues/5123 this seems likely to be a qemu bug that is incidentally triggered by Docker when emulating amd64 on arm64 hosts.