45 lines
943 B
Docker
45 lines
943 B
Docker
FROM hackebein/srcds
|
|
|
|
ENV \
|
|
# App
|
|
APPS="232250" \
|
|
#
|
|
# API
|
|
# http://steamcommunity.com/dev/apikey
|
|
AUTHKEY="" \
|
|
#
|
|
# Public access
|
|
# automatic via API
|
|
GLSTAPP="440" \
|
|
# manual
|
|
# APPID: 232250
|
|
# http://steamcommunity.com/dev/managegameservers
|
|
GLST="" \
|
|
#
|
|
# Workshop server download (require API)
|
|
WORKSHOP="\${WORKSHOPCOLLECTIONID:-}" \
|
|
#
|
|
# Workshop client download (require API)
|
|
WORKSHOPDL="" \
|
|
#
|
|
# Server config
|
|
GAME="tf" \
|
|
TICKRATE="66" \
|
|
MAXPLAYERS="24" \
|
|
MAP="cp_dustbowl" \
|
|
CONFIG="server.cfg" \
|
|
#
|
|
# Start parameters
|
|
SRCDSPARAMS="\
|
|
-game \${GAME} \
|
|
-tickrate \${TICKRATE} \
|
|
-maxplayers \${MAXPLAYERS} \
|
|
-authkey \${AUTHKEY} \
|
|
+host_workshop_collection \${WORKSHOP} \
|
|
+map \${MAP} \
|
|
+servercfgfile \${CONFIG} \
|
|
\${CUSTOMPARAMETERS} \
|
|
"
|
|
|
|
# Satisfies TF2's requirement of the steam client library
|
|
RUN mkdir -p ~/.steam/sdk32; ln -s /opt/steamcmd/linux32/steamclient.so ~/.steam/sdk32/steamclient.so |