From 8f05a1d94a4f676743773ac06063397fe12fda6d Mon Sep 17 00:00:00 2001 From: Ethorbit Date: Wed, 27 Dec 2023 08:40:06 -0800 Subject: [PATCH] Add Hl2DM Server --- servers/hl2dm-server/Dockerfile | 14 ++++++++++++++ servers/hl2dm-server/start.sh | 5 +++++ 2 files changed, 19 insertions(+) create mode 100644 servers/hl2dm-server/Dockerfile create mode 100644 servers/hl2dm-server/start.sh diff --git a/servers/hl2dm-server/Dockerfile b/servers/hl2dm-server/Dockerfile new file mode 100644 index 0000000..067d887 --- /dev/null +++ b/servers/hl2dm-server/Dockerfile @@ -0,0 +1,14 @@ +FROM steamcmd-server +USER root +ENV APP_ID=232370 +ENV SERVER_DIR="${SERVERS_DIR}/Half-Life 2 Deathmatch Dedicated Server" +COPY ./start.sh "${IMAGE_DIR}/${START_SCRIPT}" +RUN chown ${USER}:${USER} "${IMAGE_DIR}/${START_SCRIPT}" &&\ + chmod +x "${IMAGE_DIR}/${START_SCRIPT}" &&\ + dpkg --add-architecture i386 &&\ + apt update &&\ + apt-get install -y --no-install-suggests --no-install-recommends \ + libtinfo5:i386 &&\ + apt-get remove --purge --auto-remove -y &&\ + rm -rf /var/lib/apt/lists/* +USER ${USER} diff --git a/servers/hl2dm-server/start.sh b/servers/hl2dm-server/start.sh new file mode 100644 index 0000000..5dbbdbd --- /dev/null +++ b/servers/hl2dm-server/start.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# Can't do autoupdate because a combination of the default game dir name +# with spaces and the steamcmd runscript causes the srcds_run to completely break. +"${SERVER_DIR}/srcds_run" -game hl2mp +map dm_lockdown "${START_ARGS}" +