-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
37 lines (28 loc) · 1.52 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
# build quake
FROM buildpack-deps:stretch as builder
ENV COPYDIR /server
WORKDIR /server
COPY ./server_compile.sh .
RUN apt-get update && apt-get install unzip && ./server_compile.sh && \
curl https://raw.githubusercontent.com/nrempel/q3-server/master/baseq3/pak0.pk3 -o ./baseq3/pak0.pk3
RUN curl -o quake3-latest-pk3s.zip 'https://www.ioquake3.org/data/quake3-latest-pk3s.zip' -H 'Referer: https://ioquake3.org' && \
unzip quake3-latest-pk3s.zip && \
mv /server/quake3-latest-pk3s/baseq3/* /server/baseq3/ && \
mv /server/quake3-latest-pk3s/missionpack/* /server/missionpack/ && \
rm -rf quake3-latest-pk3s* && \
curl -o cpma-1.50-nomaps.zip https://cdn.playmorepromode.com/files/latest/cpma-1.50-nomaps.zip && \
unzip cpma-1.50-nomaps.zip && rm cpma-1.50-nomaps.zip && \
curl -o cpma-mappack-full.zip https://cdn.playmorepromode.com/files/cpma-mappack-full.zip && \
unzip -d /server/baseq3/ cpma-mappack-full.zip && rm cpma-mappack-full.zip && \
curl -o cnq3-1.50.zip https://cdn.playmorepromode.com/files/latest/cnq3-1.50.zip && \
unzip -d /server/cpma/ -o cnq3-1.50.zip && rm cnq3-1.50.zip && chmod +x ./cpma/cnq3-server*
# server
FROM debian:stretch
EXPOSE 27960
COPY --from=builder /server /server
COPY ./configs/* /server/baseq3/
COPY ./server*.sh /server/
WORKDIR /server
# CMD [ "./ioq3ded.x86_64", "+exec", "server.cfg", "+exec", "levels.cfg", "+exec", "bots.cfg" ]
# CMD [ "./cpma/cnq3-server-x64", "+exec", "server.cfg", "+exec", "levels.cfg", "+exec", "bots.cfg" ]
CMD [ "./server_start.sh" ]