diff --git a/gtetrinet/Dockerfile b/gtetrinet/Dockerfile new file mode 100644 index 0000000..4035338 --- /dev/null +++ b/gtetrinet/Dockerfile @@ -0,0 +1,28 @@ +# Run gtetrinet in a container +# +# xhost +"local:docker@" && \ +# docker run -it \ +# -v /tmp/.X11-unix:/tmp/.X11-unix \ # mount the X11 socket +# -e DISPLAY=$DISPLAY \ +# --name gtetrinet \ +# jessfraz/gtetrinet + +FROM debian:stretch-slim +LABEL maintainer "Jessie Frazelle " + +RUN apt-get update && apt-get install -y \ + dbus \ + gtetrinet \ + --no-install-recommends \ + && rm -rf /var/lib/apt/lists/* + +COPY dbus.conf /etc/dbus-1/session.d/ + +# Run gtetrinet as non privileged user +ENV HOME /home/gtetrinet +RUN useradd --create-home --home-dir $HOME gtetrinet \ + && chown -R gtetrinet:gtetrinet $HOME +USER gtetrinet + +# Autorun gtetrinet +ENTRYPOINT ["dbus-run-session", "/usr/games/gtetrinet"] diff --git a/gtetrinet/dbus.conf b/gtetrinet/dbus.conf new file mode 100644 index 0000000..b061e1f --- /dev/null +++ b/gtetrinet/dbus.conf @@ -0,0 +1,9 @@ + + + + tcp:host=localhost,bind=*,port=6667,family=ipv4 + unix:tmpdir=/tmp + ANONYMOUS + +