Compare commits

..

12 Commits

Author SHA1 Message Date
656429a40c Update README.md 2025-02-07 18:47:40 +01:00
8f3c72d2f2 Update Dockerfile 2025-02-07 18:45:59 +01:00
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
3 changed files with 31 additions and 17 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
@ -22,17 +22,23 @@ 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
RUN ./steamcmd.sh +force_install_dir /hlds +login anonymous +app_set_config 90 +mod cstrike +quit; exit 0
RUN ./steamcmd.sh +force_install_dir /hlds +login anonymous +app_update 90 -beta steam_legacy +quit; exit 0
RUN ./steamcmd.sh +force_install_dir /hlds +login anonymous +app_update 90 -beta steam_legacy validate +quit
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,10 +1,18 @@
# cstrike
Образ основан на [этом репозитории](https://github.com/AMXX4u/BasePack).
## Развёртывание
## setup
```
mkdir /opt/cstrike
cd /opt/cstrike
git clone github.com/fruworg/cstrike
git clone github.com/fruworg/cstrike .
docker compose up -d
```
## build
```
mkdir /opt/cstrike
cd /opt/cstrike
git clone github.com/fruworg/cstrike .
docker build . --platform=linux/386 -t cstrike
```

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