Updated to unturned
Build / latest (push) Successful in 9s

This commit is contained in:
2026-06-14 11:13:47 +02:00
parent be34e1f7f7
commit db67c3e51c
2 changed files with 32 additions and 39 deletions
+27 -37
View File
@@ -2,45 +2,35 @@ FROM hackebein/srcds
ENV \
# App
APPS="4020 -validate -language en,232330 -validate -language en" \
APPS="1110390 -validate" \
#
# API
# http://steamcommunity.com/dev/apikey
AUTHKEY="" \
#
# Public access
# automatic via API
GLSTAPP="4000" \
# manual
# APPID: 4000
# http://steamcommunity.com/dev/managegameservers
GLST="" \
#
# Workshop server download (require API)
WORKSHOP="\${WORKSHOPCOLLECTIONID:-}" \
#
# Workshop client download (require API)
WORKSHOPDL="" \
# Server identity
INSTANCEID="Server1" \
SERVERNAME="Unturned Server" \
SERVERPASSWORD="" \
ADMINPASSWORD="" \
OWNER="0" \
#
# Server config
GAME="garrysmod" \
TICKRATE="66" \
MAXPLAYERS="16" \
GAMEMODE="sandbox" \
GAMETYPE="0" \
MAP="gm_flatgrass" \
MAPGROUP="mg_active" \
CONFIG="server.cfg" \
MAP="PEI" \
MAXPLAYERS="8" \
PERSPECTIVE="Both" \
PVP="true" \
PORT="27015" \
#
# Anti-cheat
VAC="true" \
EASYANTICHEAT="true" \
#
# Workshop
WORKSHOP="" \
#
# Start parameters
SRCDSPARAMS="\
-game \${GAME} \
-tickrate \${TICKRATE} \
-maxplayers \${MAXPLAYERS} \
-authkey \${AUTHKEY} \
+host_workshop_collection \${WORKSHOP} \
+gamemode \${GAMEMODE} \
+map \${MAP} \
+servercfgfile \${CONFIG} \
\${CUSTOMPARAMETERS} \
"
CUSTOMPARAMETERS=""
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
EXPOSE 27015/tcp 27015/udp 27016/udp
ENTRYPOINT ["/entrypoint.sh"]