mirror of
https://github.com/fruworg/cstrike.git
synced 2025-04-27 21:17:19 +03:00
Compare commits
10 Commits
2c9de87390
...
249d565ffb
Author | SHA1 | Date | |
---|---|---|---|
249d565ffb | |||
41f33bb5f9 | |||
7e74610701 | |||
ae2271111a | |||
dbdc279a6d | |||
1651ded80e | |||
ff0fc884d6 | |||
663a65bea5 | |||
b3f1d9b89b | |||
44b49d8f29 |
19
Dockerfile
19
Dockerfile
@ -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 UTF8 en_US.UTF8
|
RUN localedef -c -i en_US -f UTF-8 en_US.UTF-8
|
||||||
|
|
||||||
WORKDIR /steamcmd
|
WORKDIR /steamcmd
|
||||||
|
|
||||||
@ -27,12 +27,17 @@ 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/1.0.20/BasePack.zip /tmp
|
ADD https://github.com/AMXX4u/BasePack/releases/download/2.0.0/BasePack.v2.0.0.zip /tmp
|
||||||
RUN unzip -o /tmp/BasePack.zip -d /hlds
|
RUN unzip -o /tmp/BasePack.v2.0.0.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
|
||||||
|
|
||||||
ENTRYPOINT ./hlds_run -game cstrike -strictportbind -ip 0.0.0.0 -port 27015 \
|
RUN rm -rf /tmp/*
|
||||||
+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"]
|
||||||
|
|
||||||
|
@ -1,13 +1,10 @@
|
|||||||
version: '3.7'
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
cstrike:
|
cstrike:
|
||||||
container_name: cstrike
|
container_name: cstrike
|
||||||
image: fruworg/cstrike:latest
|
image: fruworg/cstrike
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
command: >
|
networks:
|
||||||
./hlds_run -game cstrike -strictportbind -ip 0.0.0.0 -port 27015
|
- cstrike
|
||||||
+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
|
||||||
@ -21,3 +18,6 @@ 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
|
Loading…
x
Reference in New Issue
Block a user