diff --git a/Dockerfile b/Dockerfile index a8d4f2d..f00601a 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; \ + while [$? -ne 0]; do sh home/steam/steamcmd.sh +login anonymous +force_install_dir /home/steam/cs16 +app_update 90 validate +quit; \ + done 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