-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile-get5
46 lines (37 loc) · 2.24 KB
/
Dockerfile-get5
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
ARG BASE_IMAGE=csgo:preinstall
FROM $BASE_IMAGE
ENV METAMOD_URL "https://mms.alliedmods.net/mmsdrop/1.11/mmsource-1.11.0-git1144-linux.tar.gz"
ENV SOURCEMOD_URL "https://sm.alliedmods.net/smdrop/1.10/sourcemod-1.10.0-git6502-linux.tar.gz"
ENV GET5_URL "https://github.com/splewis/get5/releases/download/0.7.1/get5_0.7.1.zip"
ENV GET5_APISTATS_URL "https://github.com/PhlexPlexico/get5-web/releases/download/1.0/get5_apistats.smx"
ENV SYSTEM2_URL "https://github.com/dordnung/System2/releases/download/v3.2.1/system2.zip"
ENV STEAMWORKS_URL "http://users.alliedmods.net/~kyles/builds/SteamWorks/SteamWorks-git132-linux.tar.gz"
WORKDIR /usr/src
# Install zip for unpacking get5, and libstdc++6 because metamod needs it
RUN apt-get update -y && \
apt-get -y install zip libstdc++6:i386
RUN mkdir -p ./csgo/csgo/addons/sourcemod/plugins
# Download
RUN wget --output-document ./mmsource-linux.tar.gz "$METAMOD_URL" && \
wget --output-document ./sourcemod-linux.tar.gz "$SOURCEMOD_URL" && \
wget --output-document ./get5.zip "$GET5_URL" && \
wget --output-document ./csgo/csgo/addons/sourcemod/plugins/get5_apistats.smx "$GET5_APISTATS_URL" && \
wget --output-document ./system2.zip --verbose "$SYSTEM2_URL" && \
wget --output-document ./steamworks.tar.gz "$STEAMWORKS_URL"
# Extract
RUN unzip ./get5.zip -d ./csgo/csgo/ && \
tar --exclude LICENSE --exclude README.md -xf mmsource-linux.tar.gz --directory ./csgo/csgo && \
tar --exclude LICENSE --exclude README.md -xf sourcemod-linux.tar.gz --directory ./csgo/csgo && \
unzip ./system2.zip -d ./csgo/csgo/addons/sourcemod/ && \
tar -xf steamworks.tar.gz --directory ./csgo/csgo
# Fix system2 perissions
RUN chmod a+rwx ./csgo/csgo/addons/sourcemod/extensions/system2.ext.so \
./csgo/csgo/addons/sourcemod/scripting/system2_http.sp \
./csgo/csgo/addons/sourcemod/scripting/system2_test.sp \
./csgo/csgo/addons/sourcemod/scripting/include/system2.inc \
./csgo/csgo/addons/sourcemod/scripting/include/system2/legacy.inc \
./csgo/csgo/addons/sourcemod/scripting/include/system2/request.inc
## Set permissions
RUN chmod a=rwx -R ./csgo/csgo/addons ./csgo/csgo/cfg
# Remove archive
RUN rm ./mmsource-linux.tar.gz ./sourcemod-linux.tar.gz ./get5.zip ./system2.zip ./steamworks.tar.gz