Files
docker-garrysmod/Dockerfile

46 lines
820 B
Docker
Raw Normal View History

2018-08-17 02:49:09 +01:00
FROM hackebein/srcds
2018-08-20 13:18:07 +01:00
ENV \
# App
2020-03-30 03:46:21 +02:00
APPS="4020,232330" \
2018-08-20 13:18:07 +01:00
#
# API
# http://steamcommunity.com/dev/apikey
AUTHKEY="" \
#
2018-08-20 13:18:07 +01:00
# Public access
# automatic via API
GLSTAPP="4000" \
# manual
2018-08-20 13:18:07 +01:00
# APPID: 4000
2018-08-20 13:19:28 +01:00
# http://steamcommunity.com/dev/managegameservers
GLST="" \
2018-08-20 13:18:07 +01:00
#
2019-03-24 14:39:18 +01:00
# Workshop (require API)
2018-08-20 13:19:28 +01:00
WORKSHOPCOLLECTIONID="" \
2018-08-20 13:18:07 +01:00
#
# Server config
2018-08-20 13:19:28 +01:00
TICKRATE="66" \
MAXPLAYERS="16" \
GAMEMODE="sandbox" \
2018-08-20 13:18:07 +01:00
GAMETYPE="0" \
2018-08-20 13:19:28 +01:00
MAP="gm_flatgrass" \
MAPGROUP="mg_active" \
CONFIG="server.cfg" \
2018-08-20 13:18:07 +01:00
#
# Other
2018-08-20 13:19:28 +01:00
CUSTOMPARAMETERS="" \
2018-08-20 13:18:07 +01:00
#
# Start parameters
2018-08-20 13:19:28 +01:00
SRCDSPARAMS="\
-game garrysmod \
-tickrate \${TICKRATE} \
-maxplayers \${MAXPLAYERS} \
-authkey \${AUTHKEY} \
+host_workshop_collection \${WORKSHOPCOLLECTIONID} \
+gamemode \${GAMEMODE} \
+map \${MAP} \
+servercfgfile \${CONFIG} \
\${CUSTOMPARAMETERS} \
"