diff --git a/Dockerfile b/Dockerfile index a8d4f2d..f25b85f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM debian:8 +FROM debian:stable-slim RUN apt-get update -qq \ && apt-get install -y --no-install-recommends \ @@ -15,32 +15,18 @@ USER steam RUN wget -nv https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz && \ tar -xvzf steamcmd_linux.tar.gz -RUN /home/steam/steamcmd.sh +login anonymous +force_install_dir /home/steam/cs16 +app_update 90 validate +quit -RUN /home/steam/steamcmd.sh +login anonymous +force_install_dir /home/steam/cs16 +app_update 70 validate +quit || : -RUN /home/steam/steamcmd.sh +login anonymous +force_install_dir /home/steam/cs16 +app_update 10 validate +quit || : -RUN /home/steam/steamcmd.sh +login anonymous +force_install_dir /home/steam/cs16 +app_update 90 validate +quit +RUN /home/steam/steamcmd.sh +login anonymous +force_install_dir /home/steam/cs16 +app_update 90 validate +quit; +RUN /home/steam/steamcmd.sh +login anonymous +force_install_dir /home/steam/cs16 +app_update 70 validate +quit; +RUN /home/steam/steamcmd.sh +login anonymous +force_install_dir /home/steam/cs16 +app_update 10 validate +quit; RUN mkdir -p ~/.steam && ln -s ~/linux32 ~/.steam/sdk32 WORKDIR /home/steam/cs16 -# Add metamod -RUN mkdir -p cstrike/addons/metamod/dlls -COPY metamod_i386.so cstrike/addons/metamod/dlls/ -COPY metamod.so cstrike/addons/metamod/dlls/ - -# Add bots -COPY podbot cstrike/addons/podbot -RUN echo "linux addons/podbot/podbot_mm_i386.so" > cstrike/addons/metamod/plugins.ini -COPY liblist.gam cstrike/ - -# Copy ESL configs -COPY *.cfg cstrike/ - # Install aim maps COPY AimMapCs1.6/cstrike cstrike/ EXPOSE 27015/tcp EXPOSE 27015/udp -CMD ./hlds_run -game cstrike -strictportbind -autoupdate -ip 0.0.0.0 +sv_lan 1 +map aim_map -maxplayers 32 +CMD ./hlds_run -game cstrike -strictportbind -autoupdate -ip 0.0.0.0 +sv_lan 0 +map aim_map -maxplayers 32 diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..872b54a --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,8 @@ +version: "3" + +services: + server: + build: . + ports: + - "27015:27015/tcp" + - "27015:27015/udp" diff --git a/server.cfg b/server.cfg index 066fa30..ad7d3e5 100644 --- a/server.cfg +++ b/server.cfg @@ -1,4 +1,4 @@ -hostname "Counter-Strike 1.6 Server" +hostname "Counter Strike Docker" rcon_password "admin"