Fixed problem with permissions on entry scripts

The newer version of docker must work a little different, this tweak
should fix the dockerfile.