forked from dpadgett/ql-docker
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
66 lines (53 loc) · 1.93 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
# Dockerfile to run a linux quake live server
FROM ubuntu:16.10
MAINTAINER Thomas T <[email protected]>
RUN dpkg --add-architecture i386
RUN apt-get update
RUN apt-get install -y libc6:i386 libstdc++6:i386 wget
RUN apt-get install -y python3.5 python3.5-dev build-essential
RUN useradd -ms /bin/bash quake
RUN cd && cp -R .bashrc .profile /home/quake
WORKDIR /home/quake
RUN chown -R quake:quake /home/quake
USER quake
ENV HOME /home/quake
ENV USER quake
# download and extract steamcmd
RUN wget https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz
RUN tar -xvzf steamcmd_linux.tar.gz
# install the quake live server program
RUN ./steamcmd.sh +login anonymous +app_update 349090 +quit
RUN ln -s "Steam/steamapps/common/Quake Live Dedicated Server/" ql
# copy over the custom game files
USER root
COPY server.sh ql/
RUN chown quake:quake ql/server.sh
COPY server.cfg ql/baseq3/
RUN chown quake:quake ql/baseq3/server.cfg
COPY mappool_turboca.txt ql/baseq3/
RUN chown quake:quake ql/baseq3/mappool_turboca.txt
COPY turboca.factories ql/baseq3/scripts/
RUN chown -R quake:quake ql/baseq3/scripts
COPY workshop.txt ql/baseq3/
RUN chown quake:quake ql/baseq3/workshop.txt
COPY access.txt .quakelive/27960/baseq3/
RUN chown -R quake:quake .quakelive
COPY download-workshop.sh ./
RUN chown quake:quake download-workshop.sh
USER quake
# download the workshop items
RUN ./download-workshop.sh
# download and install latest minqlx
# http://stackoverflow.com/a/26738019
RUN wget -O - https://api.github.com/repos/MinoMino/minqlx/releases | grep browser_download_url | head -n 1 | cut -d '"' -f 4 | xargs wget
RUN cd ql && tar xzf ~/minqlx_v*.tar.gz
USER root
COPY minqlx-plugins ql/minqlx-plugins
COPY Quake-Live/minqlx-plugins ql/minqlx-plugins
COPY install_minqlx_plugins.sh ./
RUN cd ql && ~/install_minqlx_plugins.sh
RUN chown -R quake:quake ql/
USER quake
# ports to connect to: 27960 is udp and tcp, 28960 is tcp
EXPOSE 27960 28960
CMD ql/server.sh 0