cstrike/Dockerfile

44 lines
1.1 KiB
Docker
Raw Normal View History

2023-09-23 11:15:02 +03:00
FROM i386/debian:bookworm
2023-09-23 15:50:52 +06:00
2023-09-23 11:15:02 +03:00
LABEL maintainer="im@fruw.org"
2025-02-07 18:06:33 +01:00
ENV LANG=en_US.utf8
ENV LC_ALL=en_US.UTF-8
2023-09-23 11:15:02 +03:00
RUN apt-get update && \
apt-get -y install --no-install-recommends \
ca-certificates \
locales \
2023-09-23 15:50:52 +06:00
unzip
2023-09-23 11:15:02 +03:00
2025-02-07 18:13:46 +01:00
RUN localedef -c -i en_US -f UTF-8 en_US.UTF-8
2023-09-23 11:15:02 +03:00
WORKDIR /steamcmd
ADD http://media.steampowered.com/client/steamcmd_linux.tar.gz /tmp
RUN tar xf /tmp/steamcmd_linux.tar.gz
RUN cp linux32/crashhandler.so linux32/steamservice.so
RUN mkdir ~/.steam
RUN ln -s /steamcmd/linux32/ ~/.steam/sdk32
RUN ./steamcmd.sh +force_install_dir /hlds +login anonymous +app_update 90 +quit; exit 0
RUN ./steamcmd.sh +force_install_dir /hlds +login anonymous +app_update 90 validate +quit
WORKDIR /hlds
2025-02-07 18:04:45 +01:00
ADD https://github.com/AMXX4u/BasePack/releases/download/2.0.0/BasePack.v2.0.0.zip /tmp
2025-02-07 18:21:34 +01:00
RUN unzip -o /tmp/BasePack.v2.0.0.zip -d /hlds
2023-09-23 11:15:02 +03:00
RUN chmod +x hlds_linux
2023-09-23 14:57:40 +06:00
RUN touch cstrike/banned.cfg
RUN touch cstrike/listip.cfg
2023-09-23 11:15:02 +03:00
2025-02-07 17:55:26 +01:00
RUN rm -rf /tmp/*
2025-02-07 17:54:58 +01:00
EXPOSE 27015
2025-02-07 18:07:58 +01:00
CMD ["./hlds_run", "-game", "cstrike", "-strictportbind", "-ip", "0.0.0.0", "-port", "27015", \
"+sv_lan", "0", "+map", "de_dust2", "-maxplayers", "10", "+localinfo", "amxx_cfg", "cstrike/addons/amxmodx"]