Files
docker-garrysmod/Dockerfile

43 lines
914 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
APPS="4020" \
#
# Public access
# APPID: 4000
# http://steamcommunity.com/dev/managegameservers
GLST="" \
#
# Workshop config
# http://steamcommunity.com/dev/apikey
2018-08-17 02:49:09 +01:00
AUTHKEY="" \
WORKSHOPCOLLECTIONID="" \
2018-08-20 13:18:07 +01:00
#
# Server config
TICKRATE="66" \
MAXPLAYERS="16" \
2018-08-17 02:49:09 +01:00
GAMEMODE="sandbox" \
2018-08-20 13:18:07 +01:00
GAMETYPE="0" \
2018-08-17 02:49:09 +01:00
MAP="gm_flatgrass" \
2018-08-20 13:18:07 +01:00
MAPGROUP="mg_active" \
2018-08-17 02:49:09 +01:00
CONFIG="server.cfg" \
2018-08-20 13:18:07 +01:00
#
# Other
2018-08-17 02:49:09 +01:00
CUSTOMPARAMETERS="" \
2018-08-20 13:18:07 +01:00
#
# Start parameters
2018-08-17 02:49:09 +01:00
SRCDSPARAMS="\
-game garrysmod \
2018-08-17 20:15:32 +01:00
-tickrate \${TICKRATE} \
-maxplayers \${MAXPLAYERS} \
-authkey \${AUTHKEY} \
+host_workshop_collection \${WORKSHOPCOLLECTIONID} \
+gamemode \${GAMEMODE} \
+map \${MAP} \
+sv_setsteamaccount \${GLST} \
+servercfgfile \${CONFIG} \
\${CUSTOMPARAMETERS} \
2018-08-17 02:49:09 +01:00
"
COPY cfg $BASEDIR/garrysmod/cfg