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 \ ENV \
# Server identity # App
INSTANCEID="Server1" \ APPS="4020 -validate -language en,232330 -validate -language en" \
SERVERNAME="Unturned Server" \ #
SERVERPASSWORD="" \ # API
ADMINPASSWORD="" \ # http://steamcommunity.com/dev/apikey
OWNER="0" \ 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 # Server config
MAP="PEI" \ GAME="garrysmod" \
MAXPLAYERS="8" \ TICKRATE="66" \
PERSPECTIVE="Both" \ MAXPLAYERS="16" \
PVP="true" \ GAMEMODE="sandbox" \
PORT="27015" \ GAMETYPE="0" \
# MAP="gm_flatgrass" \
# Anti-cheat MAPGROUP="mg_active" \
VAC="true" \ CONFIG="server.cfg" \
EASYANTICHEAT="true" \
#
# Workshop
WORKSHOP="" \
# #
# Start parameters # Start parameters
CUSTOMPARAMETERS="" SRCDSPARAMS="\
-game \${GAME} \
WORKDIR /home/steam/unturned -tickrate \${TICKRATE} \
-maxplayers \${MAXPLAYERS} \
RUN mkdir -p /home/steam/unturned && chown -R steam:steam /home/steam/unturned -authkey \${AUTHKEY} \
+host_workshop_collection \${WORKSHOP} \
USER steam +gamemode \${GAMEMODE} \
RUN /home/steam/steamcmd/steamcmd.sh +force_install_dir /home/steam/unturned +login anonymous +app_update 1110390 validate +quit +map \${MAP} \
USER root +servercfgfile \${CONFIG} \
\${CUSTOMPARAMETERS} \
COPY entrypoint.sh /entrypoint.sh "
RUN chmod +x /entrypoint.sh
EXPOSE 27015/udp 27015/tcp 27016/udp
ENTRYPOINT ["/entrypoint.sh"]