-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
40 lines (32 loc) · 837 Bytes
/
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
FROM alpine:3
ENV URT_URL=http://cdn.urbanterror.info/urt/43/releases/zips/UrbanTerror434_full.zip
RUN wget \
-O /tmp/UrbanTerror.zip \
"$URT_URL" \
&& \
mkdir -p \
/usr/local/games/UrbanTerror \
&& \
unzip \
/tmp/UrbanTerror.zip \
-d /tmp \
&& \
cp -rf \
/tmp/UrbanTerror*/* \
/usr/local/games/UrbanTerror \
&& \
rm -rf \
/tmp/UrbanTerror* \
&& \
chmod +x \
/usr/local/games/UrbanTerror/Quake3-UrT.* \
&& \
echo \
"exec my.cfg" \
> /usr/local/games/UrbanTerror/q3ut4/autoexec.cfg
COPY ./launcher /usr/local/bin
RUN chmod +x /usr/local/bin/launcher
ENV PATH=/usr/local/bin:/usr/local/games/UrbanTerror:$PATH
EXPOSE 27960
WORKDIR /usr/local/games/UrbanTerror
CMD [ "/usr/local/bin/launcher" ]