Update readme. Dockerfile simplified. Crossfire only setup in place.
This commit is contained in:
34
Dockerfile
34
Dockerfile
@@ -1,41 +1,19 @@
|
||||
# Custom half life server - Steam & No Steam classic
|
||||
# pre 2024 anniversary patches edition
|
||||
|
||||
FROM debian:buster-slim
|
||||
|
||||
ARG hlds_build=7882
|
||||
ARG metamod_version=1.21p38
|
||||
ARG amxmod_version=1.8.2
|
||||
ARG jk_botti_version=1.43
|
||||
ARG steamcmd_url=https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz
|
||||
ARG hlds_url="https://github.com/DevilBoy-eXe/hlds/releases/download/$hlds_build/hlds_build_$hlds_build.zip"
|
||||
ARG metamod_url="https://github.com/Bots-United/metamod-p/releases/download/v$metamod_version/metamod_i686_linux_win32-$metamod_version.tar.xz"
|
||||
ARG amxmod_url="http://www.amxmodx.org/release/amxmodx-$amxmod_version-base-linux.tar.gz"
|
||||
ARG jk_botti_url="http://koti.kapsi.fi/jukivili/web/jk_botti/jk_botti-$jk_botti_version-release.tar.xz"
|
||||
|
||||
# Fix warning:
|
||||
# WARNING: setlocale('en_US.UTF-8') failed, using locale: 'C'.
|
||||
# International characters may not work.
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
locales=2.28-10 \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
&& localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
|
||||
ENV LANG en_US.utf8
|
||||
ENV LC_ALL en_US.UTF-8
|
||||
|
||||
# Fix error:
|
||||
# Unable to determine CPU Frequency. Try defining CPU_MHZ.
|
||||
# Exiting on SPEW_ABORT
|
||||
ENV CPU_MHZ=2300
|
||||
|
||||
RUN groupadd -r steam && useradd -r -g steam -m -d /opt/steam steam
|
||||
|
||||
RUN apt-get -y update && apt-get install -y --no-install-recommends \
|
||||
ca-certificates=20190110 \
|
||||
curl=7.64.0-4+deb10u1 \
|
||||
lib32gcc1=1:8.3.0-6 \
|
||||
unzip=6.0-23+deb10u1 \
|
||||
xz-utils=5.2.4-1 \
|
||||
zip=3.0-11+b1 \
|
||||
&& apt-get -y autoremove \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
RUN apt-get -y update && apt-get install -y ca-certificates curl lib32gcc1 unzip xz-utils zip
|
||||
|
||||
USER steam
|
||||
WORKDIR /opt/steam
|
||||
@@ -82,10 +60,6 @@ COPY lib/dproto/amxx/* /opt/steam/hlds/valve/addons/amxmodx/scripting/
|
||||
COPY lib/bind_key/amxx/bind_key.amxx /opt/steam/hlds/valve/addons/amxmodx/plugins/bind_key.amxx
|
||||
RUN echo 'bind_key.amxx ; binds keys for voting' >> /opt/steam/hlds/valve/addons/amxmodx/configs/plugins.ini
|
||||
|
||||
# Install jk_botti
|
||||
RUN curl -sqL "$jk_botti_url" | tar -C /opt/steam/hlds/valve/ -xJ \
|
||||
&& echo 'linux addons/jk_botti/dlls/jk_botti_mm_i386.so' >> /opt/steam/hlds/valve/addons/metamod/plugins.ini
|
||||
|
||||
WORKDIR /opt/steam/hlds
|
||||
|
||||
# Copy default config
|
||||
|
||||
Reference in New Issue
Block a user