summaryrefslogtreecommitdiff
path: root/Dockerfile
blob: eb52850958e8b9bcd6646c2465d623ad0f87e61d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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"]