forked from GlenDC/docker-quake3
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
25 lines (20 loc) · 1.01 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
FROM arm32v6/alpine
COPY ./qemu-arm-static /usr/bin/qemu-arm-static
RUN apk --no-cache add curl g++ gcc git make
RUN mkdir -p /tmp/build
RUN curl https://raw.githubusercontent.com/ioquake/ioq3/master/misc/linux/server_compile.sh -o /tmp/build/compile.sh
RUN curl https://ioquake3.org/data/quake3-latest-pk3s.zip --referer https://ioquake3.org/extras/patch-data/ -o /tmp/build/quake3-latest-pk3s.zip
RUN echo 'y' | sh /tmp/build/compile.sh
RUN unzip /tmp/build/quake3-latest-pk3s.zip -d /tmp/build/
RUN cp -r /tmp/build/quake3-latest-pk3s/* ~/ioquake3
FROM arm32v6/alpine
LABEL maintainer="wouterds <[email protected]>"
COPY ./qemu-arm-static /usr/bin/qemu-arm-static
COPY --from=0 /root/ioquake3 /home/ioq3srv/ioquake3
RUN ln -sf /data/pak0.pk3 /home/ioq3srv/ioquake3/baseq3/pak0.pk3 && \
ln -sf /data/server.cfg /home/ioq3srv/ioquake3/baseq3/server.cfg && \
adduser ioq3srv -D && \
rm /usr/bin/qemu-arm-static
USER ioq3srv
EXPOSE 27960
ENTRYPOINT ["/home/ioq3srv/ioquake3/ioq3ded.arm", "+exec", "server.cfg"]