Use coreect build base
Build / latest (push) Successful in 21s

This commit is contained in:
2026-06-14 10:58:22 +02:00
parent 73779c0ac1
commit be34e1f7f7
+40 -35
View File
@@ -1,41 +1,46 @@
FROM cm2network/steamcmd:root
FROM hackebein/srcds
ENV \
# Server identity
INSTANCEID="Server1" \
SERVERNAME="Unturned Server" \
SERVERPASSWORD="" \
ADMINPASSWORD="" \
OWNER="0" \
# App
APPS="4020 -validate -language en,232330 -validate -language en" \
#
# 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 config
MAP="PEI" \
MAXPLAYERS="8" \
PERSPECTIVE="Both" \
PVP="true" \
PORT="27015" \
#
# Anti-cheat
VAC="true" \
EASYANTICHEAT="true" \
#
# Workshop
WORKSHOP="" \
GAME="garrysmod" \
TICKRATE="66" \
MAXPLAYERS="16" \
GAMEMODE="sandbox" \
GAMETYPE="0" \
MAP="gm_flatgrass" \
MAPGROUP="mg_active" \
CONFIG="server.cfg" \
#
# Start parameters
CUSTOMPARAMETERS=""
WORKDIR /home/steam/unturned
RUN mkdir -p /home/steam/unturned && chown -R steam:steam /home/steam/unturned
USER steam
RUN /home/steam/steamcmd/steamcmd.sh +force_install_dir /home/steam/unturned +login anonymous +app_update 1110390 validate +quit
USER root
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
EXPOSE 27015/udp 27015/tcp 27016/udp
ENTRYPOINT ["/entrypoint.sh"]
SRCDSPARAMS="\
-game \${GAME} \
-tickrate \${TICKRATE} \
-maxplayers \${MAXPLAYERS} \
-authkey \${AUTHKEY} \
+host_workshop_collection \${WORKSHOP} \
+gamemode \${GAMEMODE} \
+map \${MAP} \
+servercfgfile \${CONFIG} \
\${CUSTOMPARAMETERS} \
"