-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
74 lines (51 loc) · 3.04 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
FROM timche/csgo:latest
USER root
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
wait-for-it \
bsdtar \
curl \
jq \
&& rm -rf /var/lib/apt/lists/*
USER csgo
WORKDIR /home/csgo
RUN mkdir plugins
WORKDIR /home/csgo/plugins
COPY --chown=csgo addons /home/csgo/plugins/addons
RUN wget -qO- https://mms.alliedmods.net/mmsdrop/1.10/$(curl -s https://mms.alliedmods.net/mmsdrop/1.10/mmsource-latest-linux) | tar zxf -
RUN wget -qO- https://sm.alliedmods.net/smdrop/1.10/$(curl -s https://sm.alliedmods.net/smdrop/1.10/sourcemod-latest-linux) | tar zxf -
RUN wget -qO- https://users.alliedmods.net/~kyles/builds/SteamWorks/SteamWorks-git132-linux.tar.gz | tar zxf -
RUN wget -qO- https://github.com/danzayau/MovementAPI/releases/download/2.1.0/MovementAPI-v2.1.0.zip | bsdtar xf -
RUN wget -qO- https://bitbucket.org/kztimerglobalteam/globalrecordssmplugin/downloads/GlobalAPI-Core-v.1.2.0.zip | bsdtar --strip 1 -xf -
RUN wget -qO- https://bitbucket.org/kztimerglobalteam/globalrecordssmplugin/downloads/GlobalAPI-Jumpstats-v.1.2.1.zip | bsdtar --strip 1 -xf -
RUN wget -qO- https://bitbucket.org/GameChaos/zone-stopwatch/downloads/ztopwatch-1.01.zip | bsdtar xf -
RUN wget -qO- https://gokz.tv/fastdl/gokz_particles/gokz_particles.rar | bsdtar xf -
WORKDIR /home/csgo/plugins/addons/sourcemod/plugins
RUN wget -q https://bitbucket.org/Sikarii/movementhud/downloads/MovementHUD-latest.smx
RUN wget -q https://github.com/DevRuto/GOKZ-Scoreboard-Timer/releases/download/0.05/scoreboardtimer.smx
RUN wget -q https://github.com/Franc1sco/FixHintColorMessages/raw/master/FixHintColorMessages.smx
RUN wget -q https://github.com/ismail0234/Benson-Map-Crash-Fixer/raw/master/mapcrashfixer.smx
RUN wget -q https://bitbucket.org/GoD_Tony/updater/downloads/updater.smx
RUN wget -q https://bitbucket.org/kztimerglobalteam/kzserveradvisor/downloads/KZServerAdvisor-latest.smx
WORKDIR /home/csgo/plugins/addons/sourcemod/extensions
RUN wget -q https://github.com/Accelerator74/Cleaner/raw/master/Release/cleaner.ext.2.csgo.so
RUN wget -q https://github.com/Accelerator74/Cleaner/raw/master/Release/cleaner.autoload
RUN wget -q https://github.com/thraaawn/SMJansson/raw/master/bin/smjansson.ext.so
RUN chmod 600 /home/csgo/plugins/addons/sourcemod/plugins/*.smx
RUN chmod 700 /home/csgo/plugins/addons/sourcemod/extensions/*.so
RUN chmod 700 /home/csgo/plugins/addons/sourcemod/extensions/*.autoload
WORKDIR /home/csgo/plugins/addons/sourcemod/gamedata
RUN wget -q https://raw.githubusercontent.com/nikooo777/ckSurf/master/csgo/addons/sourcemod/gamedata/cleaner.txt
WORKDIR /home/csgo/plugins/addons/sourcemod/configs
RUN wget -q https://raw.githubusercontent.com/nikooo777/ckSurf/master/csgo/addons/sourcemod/configs/cleaner.cfg
WORKDIR /home/csgo
COPY databases.cfg /home/csgo/plugins/addons/sourcemod/configs/
COPY mapsync.sh /home/csgo/
COPY mapsynckzt.sh /home/csgo/
COPY entrypoint.sh /home/csgo/
USER root
RUN chmod +x /home/csgo/entrypoint.sh
RUN chmod +x /home/csgo/mapsync.sh
RUN chmod +x /home/csgo/mapsynckzt.sh
USER csgo
CMD [ "/home/csgo/entrypoint.sh" ]