Adding Ubuntu Support

Added support for using Ubuntu as the OS

I have added another parameter DOCKER_OS so that you can set the OS that docker will build with.

I have also changed the passwd --stdin for chpasswd as that seems to run okay across all platforms.