Modifications from docker3d repo (https://github.com/gklingler/docker3d) to support opengl