# CS 1.6 dedicated server runtime + steamcmd. Game files live in ./hlds (bind mount).
# unzip/xz-utils: tools/install-addons.sh unpacks the pinned downloads inside this image,
# so the host only needs Docker, git and python3.
FROM debian:bookworm-slim
RUN dpkg --add-architecture i386 && apt-get update && \
    apt-get install -y --no-install-recommends ca-certificates curl lib32gcc-s1 lib32stdc++6 libc6-i386 \
      unzip xz-utils && \
    rm -rf /var/lib/apt/lists/*
RUN mkdir -p /opt/steamcmd && curl -sSL https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz | tar xz -C /opt/steamcmd && \
    chmod -R a+rwX /opt/steamcmd
WORKDIR /cs/hlds
