forked from msh100/rtcw
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
97 lines (72 loc) · 3.43 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
FROM ubuntu:20.04 AS basegame
MAINTAINER Marcus Hughes <hello@msh100.uk>
ENV DEBIAN_FRONTEND noninteractive
ARG STEAM_USER
ARG STEAM_PASS
RUN : "${STEAM_USER:?STEAM_USER is required.}"
RUN : "${STEAM_PASS:?STEAM_PASS is required.}"
RUN echo steam steam/question select "I AGREE" | debconf-set-selections && \
echo steam steam/license note '' | debconf-set-selections
RUN dpkg --add-architecture i386 && \
apt-get update && \
apt-get -y upgrade && \
apt-get install -y lib32gcc1 steamcmd libcurl4:i386 wget unzip bbe jq
RUN /usr/games/steamcmd \
+@sSteamCmdForcePlatformType windows \
+login "${STEAM_USER}" "${STEAM_PASS}" \
+force_install_dir /gamefiles/ \
+app_update 9010 \
+quit
RUN mkdir -p /output/main/ && \
cp /gamefiles/Main/mp_*.pk3 /output/main/ && \
cp /gamefiles/Main/pak0.pk3 /output/main/
RUN wget http://osp.dget.cc/orangesmoothie/downloads/osp-wolf-0.9.zip && \
md5sum osp-wolf-0.9.zip | cut -d' ' -f1 | grep 835eea094b832dc48a4d8329ce5290ba && \
unzip osp-wolf-0.9.zip && \
rm -rf osp-wolf-0.9.zip osp/Docs/ osp/*.txt osp/*.cfg && \
mv osp /output/
ADD fetchRtcwPro.sh /output/fetchRtcwPro.sh
RUN datapath="/output/rtcwpro-data" bash /output/fetchRtcwPro.sh "35955709"
RUN wget https://msh100.uk/files/rtcw-pb.tar.gz && \
md5sum rtcw-pb.tar.gz | cut -d' ' -f1 | grep 6f462200f4793502b1e654d84cf79d3c && \
tar -xvf rtcw-pb.tar.gz && \
mv pb /output/
RUN unzip /output/main/mp_bin.pk3 -d /output/main && \
rm -rf /output/main/*.dll
RUN wget https://msh100.uk/files/rtcw-binaries.tar.gz && \
md5sum rtcw-binaries.tar.gz | cut -d' ' -f1 | grep 29ecb883c5657d3620a7d2dec7a0657f && \
tar -xvf rtcw-binaries.tar.gz && \
cp -r binaries/* /output/
RUN wget https://msh100.uk/files/libnoquery.so && \
md5sum libnoquery.so | cut -d' ' -f1 | grep 91d9c6fd56392c60461c996ca29d6467
RUN mkdir /barrelfix/ /output/osp/maps/ && \
unzip /gamefiles/Main/mp_pak0.pk3 -d /barrelfix/ && \
bbe -e 's/props_flamebarrel/props_flamebar111/' /barrelfix/maps/mp_base.bsp > /output/osp/maps/mp_base.bsp && \
bbe -e 's/props_flamebarrel/props_flamebar111/' /barrelfix/maps/mp_assault.bsp > /output/osp/maps/mp_assault.bsp
FROM ubuntu:14.04
MAINTAINER Marcus Hughes <hello@msh100.uk>
ENV DEBIAN_FRONTEND noninteractive
RUN dpkg --add-architecture i386 && \
apt-get update && \
apt-get -y upgrade && \
apt-get install -y wget libc6-i386 libc6:i386 unzip bbe
RUN wget https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64 && \
md5sum jq-linux64 | cut -d' ' -f1 | grep 1fffde9f3c7944f063265e9a5e67ae4f && \
mv jq-linux64 /usr/bin/jq && \
chmod +x /usr/bin/jq
RUN wget http://archive.debian.org/debian/pool/main/g/gcc-2.95/libstdc++2.10-glibc2.2_2.95.4-27_i386.deb && \
md5sum libstdc++2.10-glibc2.2_2.95.4-27_i386.deb | cut -d' ' -f1 | grep fa8e4293fa233399a2db248625355a77 && \
dpkg -i libstdc++2.10-glibc2.2_2.95.4-27_i386.deb && \
rm -rf libstdc++2.10-glibc2.2_2.95.4-27_i386.deb
RUN useradd -ms /bin/bash game
USER game
WORKDIR /home/game
COPY --chown=game:game --from=basegame /output/ /home/game
COPY --chown=game:game mapscripts/* /home/game/osp/maps/
RUN mkdir -p /home/game/rtcwpro && \
ln -s /home/game/osp/maps /home/game/rtcwpro/maps
COPY --chown=game:game server.cfg /home/game/main/server.cfg.tpl
COPY --chown=game:game entrypoint.sh /home/game/start
RUN chmod +x /home/game/start
EXPOSE 27960/udp
ENTRYPOINT ["/home/game/start"]