This suggests you’re uploading and trying to run a Mac/arm64 binary to Fly’s Linux/amd64-based builders, which is obviously going to fail as the binary is not compatible with that architecture.
I’m not sure where rustup-init comes from, but you need to ensure this binary is amd64, i.e. don’t upload the one you have in your local project directory on your Mac, but make sure either the Dockerfile or base image gets and/or provides an amd64 rustup-init.
If you share your Dockerfile people might be able to pinpoint what needs to be done
I think the scanner just takes the running host’s architecture identifier when creating the Dockerfile, which is probably wrong. I’ll flag this on our side to get it fixed.
But you should be able to get things running by doing the above change in the Dockerfile and then doing fly deploy.