docker-tf2/Dockerfile

49 lines
1.1 KiB
Docker
Raw Permalink Normal View History

2020-07-09 21:07:38 +00:00
FROM hackebein/srcds
ENV \
# App
2020-07-11 18:12:58 +00:00
APPS="232250" \
2020-07-09 21:07:38 +00:00
#
# API
# http://steamcommunity.com/dev/apikey
AUTHKEY="" \
#
# Public access
# automatic via API
GLSTAPP="440" \
# manual
2020-07-11 18:12:58 +00:00
# APPID: 232250
2020-07-09 21:07:38 +00:00
# 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} \
2020-07-11 18:25:30 +00:00
"
2020-07-11 18:37:41 +00:00
RUN dpkg --add-architecture i386 \
&& apt-get update \
2020-07-11 18:38:52 +00:00
&& apt-get -y install lib32z1 libncurses5:i386 libbz2-1.0:i386 lib32gcc1 lib32stdc++6 libtinfo5:i386 libcurl3-gnutls:i386
2020-07-11 18:37:41 +00:00
2020-07-11 18:25:30 +00:00
# Satisfies TF2's requirement of the steam client library
2020-07-11 18:28:14 +00:00
RUN mkdir -p ~/.steam/sdk32; ln -s /opt/steamcmd/linux32/steamclient.so ~/.steam/sdk32/steamclient.so