Skip to content

Commit

Permalink
Add Hl2DM Server
Browse files Browse the repository at this point in the history
  • Loading branch information
Ethorbit committed Dec 27, 2023
1 parent 26b0c08 commit 8f05a1d
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
14 changes: 14 additions & 0 deletions servers/hl2dm-server/Dockerfile
Original file line number Diff line number Diff line change
@@ -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}
5 changes: 5 additions & 0 deletions servers/hl2dm-server/start.sh
Original file line number Diff line number Diff line change
@@ -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}"

0 comments on commit 8f05a1d

Please sign in to comment.