From 0a50f9facdc4c207b81cbb74e6b34477fb031e2d Mon Sep 17 00:00:00 2001 From: Yatima Date: Wed, 17 Feb 2021 15:47:27 +0100 Subject: [PATCH] Create Dockerfile --- Dockerfile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..77b4a8a --- /dev/null +++ b/Dockerfile @@ -0,0 +1,16 @@ +FROM ubuntu:18.04 + +ENV VERSION="v1.6.7" +ENV PASSWORD="changethis" +ENV MOTD="Welcome to our Docker Syncplay server!" +ENV PORT=8999 +ENV SALT="changethis" + +RUN apt update +RUN apt-get install -y make git python3 python3-twisted python3-pyside +RUN git checkout $VERSION +RUN make install + +EXPOSE $PORT + +CMD echo $MOTD > motd.txt && syncplay-server --password $PASSWORD --port $PORT --salt $SALT --motd-file motd.txt