tf2-casual/Dockerfile

37 lines
2.4 KiB
Text
Raw Normal View History

2023-03-20 13:43:11 +01:00
FROM ghcr.io/melkortf/tf2-sourcemod:latest
2022-10-09 15:24:47 +02:00
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 \
&& wget -nv "https://github.com/sapphonie/StAC-tf2/releases/download/v6.1.6/stac.zip" -O stac.zip \
2023-10-11 08:06:06 +02:00
&& wget -nv "https://github.com/sapphonie/sourcemod-nativevotes-updated/releases/download/workflow-build59/nativevotes_sm_1.11.zip" -O nativevotes.zip \
2022-10-09 15:24:47 +02:00
&& wget -nv "http://users.alliedmods.net/~kyles/builds/SteamWorks/SteamWorks-git132-linux.tar.gz" -O SteamWorks.tar.gz \
&& wget -nv "https://gitlab.com/Zipcore/Discord/-/raw/master/plugins/discord.smx" -O discord.smx \
&& 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 \
2024-07-09 11:47:12 +02:00
&& wget -nv "https://github.com/JoinedSenses/sm-ext-socket/releases/download/v0.2/socket.ext.so" -O socket.ext.so \
&& wget -nv "https://github.com/ldesgoui/tf2-comp-fixes/releases/download/v1.16.14/tf2-comp-fixes.zip" -O tf2-comp-fixes.zip \
2023-10-11 08:06:06 +02:00
&& wget -nv "https://github.com/sbpp/sourcebans-pp/releases/download/1.7.0/sourcebans-pp-1.7.0.plugins-only.zip" -O sourcebans.zip \
2022-10-09 15:24:47 +02:00
# install plugins
&& unzip -o system2.zip -d "${SERVER_DIR}/tf/addons/sourcemod/" \
&& unzip -o stac.zip -d "${SERVER_DIR}/tf/addons/sourcemod/" \
2022-10-09 15:24:47 +02:00
&& unzip -o nativevotes.zip -d "${SERVER_DIR}/tf/" \
&& tar xf SteamWorks.tar.gz -C "${SERVER_DIR}/tf/" \
&& 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" \
2024-07-09 11:47:12 +02:00
&& mv socket.ext.so "${SERVER_DIR}/tf/addons/sourcemod/extensions/socket.ext.so" \
2022-10-09 15:24:47 +02:00
&& unzip -o tf2-comp-fixes.zip -d "${SERVER_DIR}/tf/" \
&& unzip -o sourcebans.zip -d "${SERVER_DIR}/tf/" \
# cleanup
2024-07-09 11:47:12 +02:00
&& rm system2.zip nativevotes.zip SteamWorks.tar.gz tf2-comp-fixes.zip sourcebans.zip \
2022-10-09 15:24:47 +02:00
&& rm "${SERVER_DIR}/tf/addons/sourcemod/plugins/admin-flatfile.smx"
COPY server.cfg.template "${SERVER_DIR}/tf/cfg/server.cfg.template"
COPY motd.txt "${SERVER_DIR}/tf/cfg/motd.txt"
CMD ["+sv_pure", "2", "+map", "pl_upward", "+maxplayers", "24"]