Update dockerfile to suppport cfgs

This commit is contained in:
Ari Timonen 2018-04-18 20:21:56 +00:00
parent 45fb006215
commit fddd481c78
2 changed files with 8 additions and 2 deletions

2
.gitignore vendored
View File

@ -1 +1 @@
cfg/*.cfg
cfg/*.*

View File

@ -39,10 +39,16 @@ RUN unzip ns_dedicated_server_v32.zip
RUN echo 70 > ns/steam_appid.txt
RUN mv ns/dlls/ns_i386.so ns/dlls/ns.so
# Copy own configs including bans
ADD cfg/ /home/steam/hlds/ns/
# Use seperate server.cfg because autoexec.cfg is unreliable
RUN touch /home/steam/hlds/ns/server.cfg
# VAC, HLDS, RCON, HLTV
EXPOSE 26900
EXPOSE 27015/udp
EXPOSE 27015
EXPOSE 27020
ENTRYPOINT ["./hlds_run", "-game ns", "+maxplayers 32", "+log on"]
ENTRYPOINT ["./hlds_run", "-game ns", "+maxplayers 32", "+log on", "+map ns_veil", "+exec ns/server.cfg"]