tf2-images/Dockerfile

33 lines
2.1 KiB
Text
Raw Normal View History

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 \
&& wget -nv "https://github.com/sapphonie/StAC-tf2/releases/download/v5.2.2/stac.zip" -O stac.zip \
&& wget -nv "https://github.com/sapphonie/sourcemod-nativevotes-updated/releases/download/workflow-build10/nativevotes.zip" -O nativevotes.zip \
&& 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 \
&& wget -nv "https://gitlab.com/Zipcore/Discord/-/archive/master/Discord-master.zip" -O discord.zip \
&& 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 \
# 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-20 23:55:51 +02:00
&& unzip -o discord.zip -d "${SERVER_DIR}/tf/addons/" \
&& 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/" \
# move correct plugins from disabled folder
&& mv "${SERVER_DIR}/tf/addons/sourcemod/plugins/disabled/{admin-sql-threaded.smx,sql-admin-manager.smx}" "${SERVER_DIR}/tf/addons/sourcemod/plugins/" \
# clean everything up
&& rm system2.zip stac.zip nativevotes.zip advertisements.tar.gz SteamWorks.tar.gz discord.zip socket.zip \
2022-04-20 23:49:32 +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"
CMD ["+sv_pure", "2", "+map", "cp_snakewater_final1", "+maxplayers", "8"]