docker build .
docker run -p 5900:5900 <image hash>
vncviewer localhost:5900
Second one :
docker run -p 5901:5900 <image hash>
vncviewer localhost:5901
| FROM ubuntu:16.04 | |
| RUN apt-get update -y | |
| RUN apt-get upgrade -y | |
| # Installing the apps | |
| RUN apt-get install -y xmoto xvfb x11vnc | |
| COPY run.sh run.sh | |
| CMD bash run.sh | |
| EXPOSE 5900 |
| Xvfb :99 -screen 0 1024x768x24 +extension GLX +render -noreset & | |
| x11vnc -forever -display :99 & | |
| DISPLAY=:99 /usr/games/xmoto |