Restructured Dockerfile for smaller image and allow for non-localhost connections

Reduced the image size from 990.4 MB to 812.2 MB
Running Selenium in both Hub and Node mode to allow both local and non-local connections