Ok, I suggest two thing:
I'll help you to elaborate a Dockerfile that works fine and stable, also in swarm environments (next step will be OpenShift and upgrades).
It would be helpful to add logging information when socket.io rejects a connection, i.e. log the detected vs the configured origin.
Agree, @PitaJ, @Tom_Rade?