commit fd6ffb9a47997e2ed0b16b59ae555d861a13dade Author: root Date: Wed Jan 19 23:09:50 2022 +0100 Init diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..72c90a5 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,11 @@ +FROM mono:6.12.0.107 + +RUN apt update && apt install -y wget unzip && mkdir /opt/game && cd /opt/game && wget https://cdn.tilera.xyz/file/goimp.zip && unzip goimp.zip && rm goimp.zip + +COPY ./start.sh /opt/game/ + +RUN chmod +x /opt/game/start.sh + +VOLUME ["/opt/game/config"] + +ENTRYPOINT ["sh", "/opt/game/start.sh"] diff --git a/start.sh b/start.sh new file mode 100755 index 0000000..d0f4aed --- /dev/null +++ b/start.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +cd /opt/game +mono GettingOverItMP.Server.exe --hostname $HOSTNAME --maxplayers $MAX --port 25050 --nosteam --private