Create stationeers dedicated server docker image

This commit is contained in:
Laborratte 5 2026-04-06 01:12:51 +02:00
commit 32025a8a18
Signed by: Laborratte5
GPG key ID: 3A30072E35202C02
3 changed files with 49 additions and 0 deletions

19
Dockerfile Normal file
View file

@ -0,0 +1,19 @@
FROM steamcmd/steamcmd:debian-13
LABEL maintainer="laborratte5+stationeers-dd@gmail.com"
ARG UID=1000
ARG GID=1000
WORKDIR /
COPY install_stationeers_dedicated.txt "/install_stationeers_dedicated.txt"
RUN steamcmd +runscript /install_stationeers_dedicated.txt
COPY start-server.sh "/start-server.sh"
CMD chmod +x /start-server.sh
EXPOSE 27015/udp
EXPOSE 27016/udp
ENTRYPOINT ["bash", "/start-server.sh"]

View file

@ -0,0 +1,6 @@
@ShutdownOnFailedCommand 1
@NoPromptForPassword 1
force_install_dir /stationeers-dd
login anonymous
app_update 600760 validate
quit

24
start-server.sh Normal file
View file

@ -0,0 +1,24 @@
#!/bin/bash
echo "Starting stationeers dedicated server"
echo > /server.log
./stationeers-dd/rocketstation_DedicatedServer.x86_64\
-file start MyLunarMap Lunar\
-logFile "/server.log"\
-settings\
StartLocalHost true\
ServerVisible true\
GamePort 27016\
UPNPEnabled false\
ServerName "MyLunarServer"\
ServerPassword "MySuperSecurePassword"\
ServerMaxPlayers 6\
AutoSave true\
SaveInterval 300\
ServerAuthSecret "MySuperSecureSecret"\
UpdatePort 27015\
AutoPauseServer true\
UseSteamP2P false\
LocalIpAddress 0.0.0.0\
& tail -f /server.log