From a24048b373bd9cad913331b632cfca7dca1fe1e1 Mon Sep 17 00:00:00 2001 From: James Ives Date: Tue, 11 Jun 2024 16:23:38 -0400 Subject: [PATCH] wip --- .github/workflows/build.yml | 20 ++++++++++++++++++++ Dockerfile | 30 ++++++++++++++++++++++++++++++ hldm.install | 0 3 files changed, 50 insertions(+) create mode 100644 .github/workflows/build.yml create mode 100644 Dockerfile create mode 100644 hldm.install diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..5cc0e03 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,20 @@ +name: Build Docker Image + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v1 + + - name: Build and push Docker image + uses: docker/build-push-action@v2 + with: + context: . + push: false diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..12081fa --- /dev/null +++ b/Dockerfile @@ -0,0 +1,30 @@ +FROM debian:bullseye-slim + +ENV VERSION 2021.9 +ENV RELEASE_DATE 2021-09-05 +ENV LANG C.UTF-8 +ENV LC_ALL C.UTF-8 +ENV DEBIAN_FRONTEND noninteractive + +# Update base image and install dependencies. +RUN dpkg --add-architecture i386 \ + && apt-get update && apt-get install -y --no-install-recommends \ + ca-certificates \ + curl \ + rsync \ + libc6:i386 \ + && rm -rf /var/lib/apt/lists/* \ + && groupadd -r steam && useradd -r -g steam -m -d /opt/steam steam \ + && mkdir /gamedir + +USER steam +WORKDIR /opt/steam +COPY ./hldm.install /opt/steam + +# Download SteamCMD and install HLDM. +RUN curl -sL media.steampowered.com/client/installer/steamcmd_linux.tar.gz | tar xzvf - \ + && ldd /opt/steam/linux32/steamcmd \ + && ./steamcmd.sh +runscript hldm.install \ + && rm -fr /opt/steam/hldm/cstrike \ + && rm -fr /opt/steam/hldm/siteserverui \ + && rm -fr /opt/steam/hldm/linux64 \ No newline at end of file diff --git a/hldm.install b/hldm.install new file mode 100644 index 0000000..e69de29