2022-04-20 23:33:39 +02:00
|
|
|
FROM melkortf/tf2-dm:latest
|
|
|
|
LABEL maintainer="philipp@boehm.sh"
|
|
|
|
|
|
|
|
RUN \
|
|
|
|
# download plugins
|
|
|
|
wget -nv "https://github.com/dordnung/System2/releases/download/v3.3.2/system2.zip" -O system2.zip \
|
2022-07-28 10:35:28 +02:00
|
|
|
&& wget -nv "https://github.com/sapphonie/StAC-tf2/releases/download/v5.4.1/stac.zip" -O stac.zip \
|
|
|
|
&& wget -nv "https://github.com/sapphonie/sourcemod-nativevotes-updated/releases/download/workflow-build19/nativevotes.zip" -O nativevotes.zip \
|
2022-04-20 23:33:39 +02:00
|
|
|
&& wget -nv "https://github.com/ErikMinekus/sm-advertisements/releases/download/2.1.1/release.tar.gz" -O advertisements.tar.gz \
|
|
|
|
&& wget -nv "http://users.alliedmods.net/~kyles/builds/SteamWorks/SteamWorks-git132-linux.tar.gz" -O SteamWorks.tar.gz \
|
2022-04-21 01:19:42 +02:00
|
|
|
&& wget -nv "https://gitlab.com/Zipcore/Discord/-/raw/master/plugins/discord.smx" -O discord.smx \
|
2022-04-21 01:31:17 +02:00
|
|
|
&& wget -nv "https://gitlab.com/Zipcore/Discord/-/raw/master/plugins/discord_sourcebans.smx" -O discord_sourcebans.smx \
|
|
|
|
&& wget -nv "https://gitlab.com/Zipcore/Discord/-/raw/master/plugins/discord_sourcecomms.smx" -O discord_sourcecomms.smx \
|
2022-04-20 23:33:39 +02:00
|
|
|
&& wget -nv "https://github.com/eaasye/soapbalancer/raw/master/soapbalancer.smx" -O soapbalancer.smx \
|
|
|
|
&& wget -nv "https://forums.alliedmods.net/attachment.php?attachmentid=83286&d=1299423920" -O socket.zip \
|
2022-10-04 11:01:05 +02:00
|
|
|
&& wget -nv "https://github.com/sapphonie/tf2rue/releases/download/v0.0.4/tf2rue.zip" -O tf2rue.zip \
|
2022-04-20 23:33:39 +02:00
|
|
|
# install plugins
|
|
|
|
&& unzip -o system2.zip -d "${SERVER_DIR}/tf/addons/sourcemod/" \
|
|
|
|
&& unzip -o stac.zip -d "${SERVER_DIR}/tf/addons/sourcemod/" \
|
|
|
|
&& unzip -o nativevotes.zip -d "${SERVER_DIR}/tf/" \
|
|
|
|
&& tar xf advertisements.tar.gz -C "${SERVER_DIR}/tf/" \
|
2022-04-20 23:53:01 +02:00
|
|
|
&& tar xf SteamWorks.tar.gz -C "${SERVER_DIR}/tf/" \
|
2022-04-21 01:22:38 +02:00
|
|
|
&& mv discord.smx "${SERVER_DIR}/tf/addons/sourcemod/plugins/discord.smx" \
|
|
|
|
&& mv discord_sourcebans.smx "${SERVER_DIR}/tf/addons/sourcemod/plugins/discord_sourcebans.smx" \
|
|
|
|
&& mv discord_sourcecomms.smx "${SERVER_DIR}/tf/addons/sourcemod/plugins/discord_sourcecomms.smx" \
|
2022-04-20 23:55:51 +02:00
|
|
|
&& mv soapbalancer.smx "${SERVER_DIR}/tf/addons/sourcemod/plugins/soapbalancer.smx" \
|
2022-04-20 23:33:39 +02:00
|
|
|
&& unzip -o socket.zip -d "${SERVER_DIR}/tf/" \
|
2022-10-04 12:02:25 +02:00
|
|
|
&& unzip -o tf2rue.zip -d "${SERVER_DIR}/tf/" \
|
2022-04-20 23:33:39 +02:00
|
|
|
# clean everything up
|
2022-10-04 11:01:05 +02:00
|
|
|
&& rm system2.zip stac.zip nativevotes.zip advertisements.tar.gz SteamWorks.tar.gz socket.zip tf2rue.zip \
|
2022-04-21 01:26:26 +02:00
|
|
|
&& rm "${SERVER_DIR}/tf/addons/sourcemod/plugins/admin-flatfile.smx"
|
2022-04-20 23:33:39 +02:00
|
|
|
|
|
|
|
COPY server.cfg.template "${SERVER_DIR}/tf/cfg/server.cfg.template"
|
|
|
|
COPY mapcycle.txt "${SERVER_DIR}/tf/cfg/mapcycle.txt"
|
|
|
|
COPY motd.txt "${SERVER_DIR}/tf/cfg/motd.txt"
|
|
|
|
|
2022-09-28 17:51:41 +02:00
|
|
|
CMD ["+sv_pure", "2", "+map", "cp_snakewater_final1", "+maxplayers", "8"]
|