This commit is contained in:
John Edwards 2023-10-01 10:48:00 +01:00
parent a8f5135f94
commit 7e38874c39
2 changed files with 8 additions and 2 deletions

View file

@ -39,8 +39,8 @@ CS2_PORT=27015 (CS2 server listen port tcp_udp)
CS2_RCONPW="changeme" (RCON password)
CS2_PW="changeme" (CS2 server password)
CS2_MAXPLAYERS=10 (Max players)
CS2_GAMETYPE=0 (Game type, see)
CS2_GAMEMODE=0 (Game mode, see)
CS2_GAMETYPE=0 (Game type, see https://developer.valvesoftware.com/wiki/Counter-Strike_2/Dedicated_Servers)
CS2_GAMEMODE=0 (Game mode, see https://developer.valvesoftware.com/wiki/Counter-Strike_2/Dedicated_Servers)
CS2_MAPGROUP="mg_active" (Map pool)
CS2_STARTMAP="de_inferno" (Start map)
CS2_ADDITIONAL_ARGS="" (Optional additional arguments to pass into cs2)

View file

@ -40,6 +40,12 @@ ENV CS2_PORT=27015 \
CS2_GAMEMODE=0 \
CS2_ADDITIONAL_ARGS=""
# Set permissions on STEAMAPPDIR
# Permissions may need to be reset if persistent volume mounted
RUN set -x \
&& chown -R "${USER}:${USER}" "${STEAMAPPDIR}" \
&& chmod 0777 "${STEAMAPPDIR}"
# Switch to user
USER ${USER}