2018-04-18 20:14:52 +00:00
|
|
|
FROM ubuntu
|
|
|
|
|
|
|
|
RUN dpkg --add-architecture i386 && \
|
|
|
|
apt-get update && \
|
2018-05-07 04:19:10 +00:00
|
|
|
apt-get -y install wget lib32gcc1 lib32stdc++6 libcurl3:i386 unzip liblz4-tool gcc-multilib g++-multilib
|
2018-04-18 20:14:52 +00:00
|
|
|
|
2018-04-28 04:53:47 +00:00
|
|
|
# Accept ToS
|
2018-04-18 20:14:52 +00:00
|
|
|
RUN printf "\n2\n"|apt-get install -y steamcmd
|
|
|
|
|
|
|
|
RUN useradd -m steam
|
|
|
|
|
|
|
|
USER steam
|
|
|
|
WORKDIR /home/steam
|
|
|
|
|
|
|
|
RUN mkdir -p /home/steam/hlds/steamapps/
|
|
|
|
|
|
|
|
# Run app validate several times workaround HLDS bug
|
2019-12-06 18:12:51 +00:00
|
|
|
RUN /usr/games/steamcmd +login anonymous +force_install_dir /home/steam/hlds +app_set_config 90 mod valve +app_update 90 validate +app_update 90 +quit ||true
|
2018-04-18 20:14:52 +00:00
|
|
|
|
|
|
|
# HLDS bug workaround. Whee.
|
|
|
|
COPY --chown=steam files/*.acf /home/steam/hlds/steamapps/
|
|
|
|
|
|
|
|
# HLDS bug workaround. Geez.
|
2019-12-06 18:12:51 +00:00
|
|
|
RUN printf "quit\nquit\n"|/usr/games/steamcmd +login anonymous +force_install_dir /home/steam/hlds +app_set_config 90 mod valve +app_update 90 validate ||true
|
|
|
|
RUN printf "quit\nquit\n"|/usr/games/steamcmd +login anonymous +force_install_dir /home/steam/hlds +app_set_config 90 mod valve +app_update 90 validate ||true
|
|
|
|
RUN printf "quit\nquit\nquit\nquit\nquit\n" |/usr/games/steamcmd +login anonymous +force_install_dir /home/steam/hlds +app_set_config 90 mod valve +app_update 90 validate ||true
|
2018-04-18 20:14:52 +00:00
|
|
|
|
|
|
|
# HLDS bug workaround. Yay.
|
|
|
|
RUN mkdir -p ~/.steam/sdk32 && ln -s ~/.steam/steamcmd/linux32/steamclient.so ~/.steam/sdk32/steamclient.so
|
|
|
|
|
|
|
|
WORKDIR /home/steam/hlds
|
|
|
|
|
2018-05-07 04:19:10 +00:00
|
|
|
# NS bug workaround. Since NS links to a GCC which is not included in the steam-provided libstdc++:i386
|
|
|
|
RUN mv libstdc++* /home/steam/
|
|
|
|
|
2018-04-28 04:53:47 +00:00
|
|
|
# Install NS
|
2018-10-26 23:45:48 +00:00
|
|
|
RUN wget 'https://github.com/ENSL/NS/releases/download/v3.2.2/ns_v322_full.zip'
|
2018-04-18 20:14:52 +00:00
|
|
|
COPY --chown=steam files/ns.sha /home/steam/hlds
|
|
|
|
# RUN sha256sum -c ns.sha
|
2018-10-26 23:45:48 +00:00
|
|
|
RUN unzip ns_v322_full.zip
|
2018-04-18 20:14:52 +00:00
|
|
|
|
2018-04-28 04:53:47 +00:00
|
|
|
WORKDIR /home/steam/hlds/ns
|
2018-04-18 20:14:52 +00:00
|
|
|
|
2018-04-28 04:53:47 +00:00
|
|
|
# NS workarounds
|
|
|
|
RUN echo 70 > steam_appid.txt
|
2018-10-26 23:45:48 +00:00
|
|
|
# RUN mv dlls/ns_i386.so dlls/ns.so || echo
|
2018-05-07 04:19:10 +00:00
|
|
|
|
2018-04-28 04:53:47 +00:00
|
|
|
# ENSL package
|
|
|
|
RUN cp liblist.gam liblist.bak
|
2018-05-07 04:19:10 +00:00
|
|
|
# RUN wget https://github.com/ENSL/ensl-plugin/releases/download/v1.4/ensl_srvpkg-v1.4.zip -O srv.zip
|
2018-05-07 04:49:11 +00:00
|
|
|
RUN wget https://github.com/ENSL/ensl-plugin/releases/download/1.4-extra/ENSL_SrvPkg-1.4-extra.zip -O srv.zip
|
2018-04-28 04:53:47 +00:00
|
|
|
RUN unzip -o srv.zip
|
2018-04-18 20:21:56 +00:00
|
|
|
|
|
|
|
# Use seperate server.cfg because autoexec.cfg is unreliable
|
|
|
|
RUN touch /home/steam/hlds/ns/server.cfg
|
|
|
|
|
2018-04-28 04:53:47 +00:00
|
|
|
# Copy own configs including bans
|
|
|
|
ADD overlay /home/steam/hlds/ns/
|
2018-05-07 04:19:10 +00:00
|
|
|
COPY scripts/*.sh /home/steam/hlds/
|
2018-04-28 05:30:30 +00:00
|
|
|
|
|
|
|
USER root
|
2018-05-07 04:19:10 +00:00
|
|
|
RUN chown -R steam /home/steam/hlds
|
|
|
|
RUN apt-get install -y libstdc++6:i386
|
2018-04-28 05:30:30 +00:00
|
|
|
USER steam
|
2018-05-07 04:19:10 +00:00
|
|
|
|
2018-04-23 22:20:00 +00:00
|
|
|
WORKDIR /home/steam/hlds
|
|
|
|
|
2020-02-27 00:12:38 +00:00
|
|
|
# VAC Service
|
2018-04-18 20:14:52 +00:00
|
|
|
EXPOSE 26900
|
2020-02-27 00:12:38 +00:00
|
|
|
|
|
|
|
# HLDS
|
2018-04-23 22:20:00 +00:00
|
|
|
EXPOSE 27016
|
2020-02-27 00:12:38 +00:00
|
|
|
|
|
|
|
# HLDS RCON
|
|
|
|
EXPOSE 27016/udp
|
|
|
|
|
|
|
|
# HLTV
|
2018-04-18 20:14:52 +00:00
|
|
|
EXPOSE 27020
|
|
|
|
|
2019-12-06 18:12:51 +00:00
|
|
|
# ENTRYPOINT ["/bin/bash"]
|
2018-05-07 04:19:10 +00:00
|
|
|
ENTRYPOINT ["/home/steam/hlds/entry.sh"]
|