Skip to content

Instantly share code, notes, and snippets.

@rom1504
Last active November 14, 2018 21:56
Show Gist options
  • Save rom1504/a7ddb818a3d7a2bd41bd88209254b26b to your computer and use it in GitHub Desktop.
Save rom1504/a7ddb818a3d7a2bd41bd88209254b26b to your computer and use it in GitHub Desktop.
xmoto-docker
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment