Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesIves committed Jun 11, 2024
1 parent 26cf3cd commit a24048b
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -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
30 changes: 30 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Empty file added hldm.install
Empty file.

0 comments on commit a24048b

Please sign in to comment.