summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorBotond Hende <nettingman@gmail.com>2024-11-19 01:05:04 +0100
committerBotond Hende <nettingman@gmail.com>2024-11-19 01:05:04 +0100
commiteb0aeb75182e32eaf74efbcf37e006f1013efb08 (patch)
treee945111dfffd607b6dd3727609b05ab45300fd26 /Dockerfile
initial commit
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile31
1 files changed, 31 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..eb52850
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,31 @@
+FROM docker.io/debian:bookworm
+
+MAINTAINER Hende, Botond <nettingman@gmail.com>
+LABEL Description="Space Station 14 server"
+
+RUN apt-get update && apt-get install -y \
+ wget \
+ curl \
+ unzip
+
+RUN wget https://packages.microsoft.com/config/debian/12/packages-microsoft-prod.deb -O packages-microsoft-prod.deb \
+ && dpkg -i packages-microsoft-prod.deb \
+ && rm packages-microsoft-prod.deb
+
+RUN apt-get update && apt-get install -y \
+ dotnet-runtime-8.0 \
+ && rm -rf /var/lib/apt/lists/*
+
+RUN mkdir -p /opt/ss14/server
+
+COPY server_config.toml /opt/ss14/server_config.toml
+COPY update_and_start.sh /opt/ss14/update_and_start.sh
+
+RUN useradd -M spessman && chown -R spessman:spessman /opt/ss14
+
+WORKDIR /opt/ss14
+USER spessman
+EXPOSE 1212/tcp
+EXPOSE 1212/udp
+
+CMD ["/opt/ss14/update_and_start.sh"]