59 lines
3.8 KiB
Docker
59 lines
3.8 KiB
Docker
FROM ghcr.io/melkortf/tf2-dm:latest
|
|
LABEL maintainer="philipp@boehm.sh"
|
|
|
|
|
|
ARG METAMOD_VERSION_MAJOR=2
|
|
ARG METAMOD_VERSION_MINOR=0
|
|
ARG METAMOD_VERSION_PATCH=0
|
|
ARG METAMOD_VERSION_BUILD=1331
|
|
ARG METAMOD_VERSION=${METAMOD_VERSION_MAJOR}.${METAMOD_VERSION_MINOR}.${METAMOD_VERSION_PATCH}-git${METAMOD_VERSION_BUILD}
|
|
ARG METAMOD_TARBALL_FILE_NAME=mmsource-${METAMOD_VERSION}-linux.tar.gz
|
|
ARG METAMOD_TARBALL_URL=https://mms.alliedmods.net/mmsdrop/${METAMOD_VERSION_MAJOR}.${METAMOD_VERSION_MINOR}/${METAMOD_TARBALL_FILE_NAME}
|
|
|
|
ARG SOURCEMOD_VERSION_MAJOR=1
|
|
ARG SOURCEMOD_VERSION_MINOR=13
|
|
ARG SOURCEMOD_VERSION_PATCH=0
|
|
ARG SOURCEMOD_VERSION_BUILD=7211
|
|
ARG SOURCEMOD_VERSION=${SOURCEMOD_VERSION_MAJOR}.${SOURCEMOD_VERSION_MINOR}.${SOURCEMOD_VERSION_PATCH}-git${SOURCEMOD_VERSION_BUILD}
|
|
ARG SOURCEMOD_TARBALL_FILE_NAME=sourcemod-${SOURCEMOD_VERSION}-linux.tar.gz
|
|
ARG SOURCEMOD_TARBALL_URL=https://sm.alliedmods.net/smdrop/${SOURCEMOD_VERSION_MAJOR}.${SOURCEMOD_VERSION_MINOR}/${SOURCEMOD_TARBALL_FILE_NAME}
|
|
|
|
RUN \
|
|
wget -nv "${METAMOD_TARBALL_URL}" \
|
|
&& wget -nv "${SOURCEMOD_TARBALL_URL}" \
|
|
&& tar xf "${METAMOD_TARBALL_FILE_NAME}" -C "${SERVER_DIR}/tf" \
|
|
&& tar xf "${SOURCEMOD_TARBALL_FILE_NAME}" -C "${SERVER_DIR}/tf" \
|
|
&& rm "${METAMOD_TARBALL_FILE_NAME}" \
|
|
&& rm "${SOURCEMOD_TARBALL_FILE_NAME}" \
|
|
# 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.3.5/stac.zip" -O stac.zip \
|
|
&& wget -nv "https://github.com/sapphonie/sourcemod-nativevotes-updated/releases/download/workflow-build61/nativevotes_sm_1.11.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/-/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 \
|
|
&& wget -nv "https://github.com/eaasye/soapbalancer/raw/master/soapbalancer.smx" -O soapbalancer.smx \
|
|
&& 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/sapphonie/tf2rue/releases/download/v0.0.11/tf2rue.zip" -O tf2rue.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/" \
|
|
&& unzip -o tf2rue.zip -d "${SERVER_DIR}/tf/addons/sourcemod/" \
|
|
&& tar xf advertisements.tar.gz -C "${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" \
|
|
&& mv soapbalancer.smx "${SERVER_DIR}/tf/addons/sourcemod/plugins/soapbalancer.smx" \
|
|
&& mv socket.ext.so "${SERVER_DIR}/tf/addons/sourcemod/extensions/" \
|
|
# clean everything up
|
|
&& rm "${SERVER_DIR}/tf/addons/sourcemod/plugins/admin-flatfile.smx" "system2.zip" "stac.zip" "nativevotes.zip" "tf2rue.zip"
|
|
|
|
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"]
|