summaryrefslogtreecommitdiff
path: root/Dockerfile
blob: 5602810f23af307b6e7fcca3bd57a943538eab82 (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
32
33
34
35
36
37
38
39
40
41
42
43
44
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 \

	# dotnet dependencies
	libc6 \
	libgcc-s1 \
	libgssapi-krb5-2 \
	libicu72 \
	libssl3 \
	libstdc++6 \
	zlib1g \
	
	&& 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 /home/spessman
USER spessman

RUN wget https://dot.net/v1/dotnet-install.sh -O dotnet-install.sh \
	&& chmod +x dotnet-install.sh \
	&& ./dotnet-install.sh --runtime dotnet --channel 8.0 \
	&& rm dotnet-install.sh

EXPOSE 1212/tcp
EXPOSE 1212/udp

ENV DOTNET_ROOT="/home/spessman/.dotnet"
ENV PATH="$PATH:$DOTNET_ROOT:$DOTNET_ROOT/tools"

WORKDIR /opt/ss14
CMD ["/opt/ss14/update_and_start.sh"]