Compare commits

...

10 Commits

Author SHA1 Message Date
249d565ffb
Update Dockerfile 2025-02-07 18:21:34 +01:00
41f33bb5f9
Update compose.yml 2025-02-07 18:17:06 +01:00
7e74610701
Update Dockerfile 2025-02-07 18:13:46 +01:00
ae2271111a
Update Dockerfile 2025-02-07 18:07:58 +01:00
dbdc279a6d
Update Dockerfile 2025-02-07 18:06:33 +01:00
1651ded80e
Update Dockerfile 2025-02-07 18:04:45 +01:00
ff0fc884d6
Rename docker-compose.yml to compose.yml 2025-02-07 18:01:40 +01:00
663a65bea5
Update docker-compose.yml 2025-02-07 18:00:14 +01:00
b3f1d9b89b
Update Dockerfile 2025-02-07 17:55:26 +01:00
44b49d8f29
Update Dockerfile 2025-02-07 17:54:58 +01:00
2 changed files with 18 additions and 13 deletions

View File

@ -2,8 +2,8 @@ FROM i386/debian:bookworm
LABEL maintainer="im@fruw.org"
ENV LANG en_US.utf8
ENV LC_ALL en_US.UTF-8
ENV LANG=en_US.utf8
ENV LC_ALL=en_US.UTF-8
RUN apt-get update && \
apt-get -y install --no-install-recommends \
@ -11,7 +11,7 @@ RUN apt-get update && \
locales \
unzip
RUN localedef -c -i en_US -f UTF8 en_US.UTF8
RUN localedef -c -i en_US -f UTF-8 en_US.UTF-8
WORKDIR /steamcmd
@ -27,12 +27,17 @@ RUN ./steamcmd.sh +force_install_dir /hlds +login anonymous +app_update 90 valid
WORKDIR /hlds
ADD https://github.com/AMXX4u/BasePack/releases/download/1.0.20/BasePack.zip /tmp
RUN unzip -o /tmp/BasePack.zip -d /hlds
ADD https://github.com/AMXX4u/BasePack/releases/download/2.0.0/BasePack.v2.0.0.zip /tmp
RUN unzip -o /tmp/BasePack.v2.0.0.zip -d /hlds
RUN chmod +x hlds_linux
RUN touch cstrike/banned.cfg
RUN touch cstrike/listip.cfg
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
RUN rm -rf /tmp/*
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,13 +1,10 @@
version: '3.7'
services:
cstrike:
container_name: cstrike
image: fruworg/cstrike:latest
image: fruworg/cstrike
restart: unless-stopped
command: >
./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
networks:
- cstrike
volumes:
- ./configs/motd.txt:/hlds/cstrike/motd.txt
- ./configs/server.cfg:/hlds/cstrike/server.cfg
@ -21,3 +18,6 @@ services:
- ./configs/users.ini:/hlds/cstrike/addons/amxmodx/configs/users.ini
ports:
- 27015:27015/udp
networks:
cstrike:
enable_ipv6: true