-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
77 lines (69 loc) · 1.74 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
FROM ubuntu:16.04
MAINTAINER Niclas Lindtedt <nicl@slindstedt.se>
ENV REFRESHED_AT 2017-08-12
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y --no-install-recommends apt-utils \
&& apt-get install -y \
curl \
gcc \
git \
libc6-dev \
make \
pkg-config \
unzip \
wget \
&& rm -rf /var/lib/apt/lists/* \
# Build and install mvdsv
&& git clone https://github.com/deurk/mvdsv.git \
&& cd mvdsv/build/make \
&& ./configure \
&& make \
&& mv mvdsv /root/mvdsv \
&& cd .. \
&& rm -rf mvdsv \
# Build and install ktx
&& git clone https://github.com/deurk/ktx.git \
&& cd ktx \
&& ./configure \
&& make dl \
&& mv qwprogs.so /root/qwprogs.so \
&& cd .. \
&& rm -rf ktx \
# Build and install qtv
&& git clone https://github.com/deurk/qtv.git \
&& cd qtv \
&& make \
&& mv qtv.bin /root/qtv.bin \
&& cd .. \
&& rm -rf qtv \
# Build and install qwfwd
&& git clone https://github.com/deurk/qwfwd.git \
&& cd qwfwd \
&& ./configure \
&& make \
&& mv qwfwd.bin /root/qwfwd.bin \
&& cd .. \
&& rm -rf qwfwd \
# Install nQuakesv
&& curl -O -s https://raw.githubusercontent.com/nQuake/server-linux/master/src/install_nquakesv.sh \
&& chmod +x install_nquakesv.sh \
&& sleep 1 \
&& ./install_nquakesv.sh -n -q -d /nquakesv \
&& ln -s /root/.nquakesv /etc/nquakesv \
&& mv /root/mvdsv /nquakesv/mvdsv \
&& mv /root/qwprogs.so /nquakesv/ktx/qwprogs.so \
&& mv /root/qtv.bin /nquakesv/qtv/qtv.bin \
&& mv /root/qwfwd.bin /nquakesv/ktx/qwfwd.bin \
# Clean up stuff needed for compilations
&& apt-get purge --auto-remove -y \
curl \
gcc \
git \
libc6-dev \
make \
pkg-config \
unzip \
wget
WORKDIR ["/nquakesv"]
ENTRYPOINT ["/nquakesv/start_servers.sh"]
CMD ["mvdsv", "27500"]