From fd6ffb9a47997e2ed0b16b59ae555d861a13dade Mon Sep 17 00:00:00 2001 From: root Date: Wed, 19 Jan 2022 23:09:50 +0100 Subject: [PATCH] Init --- Dockerfile | 11 +++++++++++ start.sh | 4 ++++ 2 files changed, 15 insertions(+) create mode 100644 Dockerfile create mode 100755 start.sh 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