I use these settings when creating a tar file for deploy:

    tar --no-xattrs --no-mac-metadata -czf

I do this same thing too when building archives in macOS I will unpack on Linux later.