I've used docker buildx to do this in the past. Easier to work with than qemu directly(it does so under the hood).