FROM docker.io/debian:bookworm MAINTAINER Hende, Botond 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"]