“invalid ELF header” likely implies the executable in the rpio build dir was compiled for the wrong word length (32 / 64), the wrong instruction set architecture, or the wrong ABI.
Could you post the output from inside your container of “readelf -h /usr/src/app/node_modules/rpio/build/Release/rpio.node
” ?