erlexec: cannot execute binary file

Dunno man, sounds like you are compiling for a different CPU architecture to me. :thinking:

One example on SO (though with Golang): https://stackoverflow.com/questions/52939149/exec-format-error-with-docker-run-command

You should double check. Are you building inside the CentOS 7 container and then just copying the release to the baremetal CentOS 7 machines? If so, it can still be a mismatch e.g. the build container is having a x64 CPU and the prod machines use ARM?