Compare commits

..

No commits in common. "249d565ffb567afc66403a4b325b99147e5f72cc" and "2c9de873908dd589bfb609b824f09202c330223d" have entirely different histories.

2 changed files with 13 additions and 18 deletions

View File

@ -2,8 +2,8 @@ FROM i386/debian:bookworm
LABEL maintainer="im@fruw.org" LABEL maintainer="im@fruw.org"
ENV LANG=en_US.utf8 ENV LANG en_US.utf8
ENV LC_ALL=en_US.UTF-8 ENV LC_ALL en_US.UTF-8
RUN apt-get update && \ RUN apt-get update && \
apt-get -y install --no-install-recommends \ apt-get -y install --no-install-recommends \
@ -11,7 +11,7 @@ RUN apt-get update && \
locales \ locales \
unzip unzip
RUN localedef -c -i en_US -f UTF-8 en_US.UTF-8 RUN localedef -c -i en_US -f UTF8 en_US.UTF8
WORKDIR /steamcmd WORKDIR /steamcmd
@ -27,17 +27,12 @@ RUN ./steamcmd.sh +force_install_dir /hlds +login anonymous +app_update 90 valid
WORKDIR /hlds WORKDIR /hlds
ADD https://github.com/AMXX4u/BasePack/releases/download/2.0.0/BasePack.v2.0.0.zip /tmp ADD https://github.com/AMXX4u/BasePack/releases/download/1.0.20/BasePack.zip /tmp
RUN unzip -o /tmp/BasePack.v2.0.0.zip -d /hlds RUN unzip -o /tmp/BasePack.zip -d /hlds
RUN chmod +x hlds_linux RUN chmod +x hlds_linux
RUN touch cstrike/banned.cfg RUN touch cstrike/banned.cfg
RUN touch cstrike/listip.cfg RUN touch cstrike/listip.cfg
RUN rm -rf /tmp/* ENTRYPOINT ./hlds_run -game cstrike -strictportbind -ip 0.0.0.0 -port 27015 \
+sv_lan 0 +map de_dust2 -maxplayers 16 +localinfo amxx_cfg cstrike/addons/amxmodx
EXPOSE 27015
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"]

View File

@ -1,10 +1,13 @@
version: '3.7'
services: services:
cstrike: cstrike:
container_name: cstrike container_name: cstrike
image: fruworg/cstrike image: fruworg/cstrike:latest
restart: unless-stopped restart: unless-stopped
networks: command: >
- cstrike ./hlds_run -game cstrike -strictportbind -ip 0.0.0.0 -port 27015
+sv_lan 0 +map de_dust2 -maxplayers 16 +localinfo amxx_cfg cstrike/addons/amxmodx
volumes: volumes:
- ./configs/motd.txt:/hlds/cstrike/motd.txt - ./configs/motd.txt:/hlds/cstrike/motd.txt
- ./configs/server.cfg:/hlds/cstrike/server.cfg - ./configs/server.cfg:/hlds/cstrike/server.cfg
@ -18,6 +21,3 @@ services:
- ./configs/users.ini:/hlds/cstrike/addons/amxmodx/configs/users.ini - ./configs/users.ini:/hlds/cstrike/addons/amxmodx/configs/users.ini
ports: ports:
- 27015:27015/udp - 27015:27015/udp
networks:
cstrike:
enable_ipv6: true