forked from nvtkaszpir/server-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
65 lines (60 loc) · 1.69 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
FROM ubuntu:16.04 as build
MAINTAINER Niclas Lindtedt <[email protected]>
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/* \
&& git clone https://github.com/deurk/mvdsv.git \
&& cd mvdsv/build/make \
&& ./configure \
&& make \
&& mv mvdsv /root/mvdsv \
&& cd .. \
&& rm -rf mvdsv \
&& git clone https://github.com/deurk/ktx.git \
&& cd ktx \
&& ./configure \
&& make dl \
&& mv qwprogs.so /root/qwprogs.so \
&& cd .. \
&& rm -rf ktx \
&& git clone https://github.com/deurk/qtv.git \
&& cd qtv \
&& make \
&& mv qtv.bin /root/qtv.bin \
&& cd .. \
&& rm -rf qtv \
&& git clone https://github.com/deurk/qwfwd.git \
&& cd qwfwd \
&& ./configure \
&& make \
&& mv qwfwd.bin /root/qwfwd.bin \
&& cd .. \
&& rm -rf qwfwd
RUN 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/qwfwd/qwfwd.bin
FROM ubuntu:16.04
COPY --from=build /nquakesv /nquakesv
COPY --from=build /root/.nquakesv /root/.nquakesv
RUN apt-get update \
&& apt-get install --no-install-recommends screen -y \
&& rm -rf /var/lib/apt/lists/*
WORKDIR ["/nquakesv"]
ENTRYPOINT ["/nquakesv/start_servers.sh"]
CMD ["mvdsv", "27500"]