-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
44 lines (36 loc) · 983 Bytes
/
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
# build ioquake3
FROM alpine:latest AS ioquake3-build
ADD ./ioq3 /build
ENV \
BUILD_STANDALONE=0 \
BUILD_CLIENT=0 \
BUILD_SERVER=1 \
BUILD_GAME_SO=0 \
BUILD_GAME_QVM=0 \
BUILD_BASEGAME=1 \
BUILD_MISSIONPACK=0 \
BUILD_AUTOUPDATER=0 \
USE_CURL=1 \
USE_CURL_DLOPEN=0 \
USE_INTERNAL_LIBS=0 \
\
DEFAULT_BASEDIR=/quake \
COPYDIR=/build/tempinstall
WORKDIR /build
RUN \
apk update && apk upgrade && \
apk --no-cache add curl g++ gcc make zlib-dev && \
\
mkdir tempinstall/bin/ -pv && \
make && make copyfiles
# move the bins to the actual image
FROM alpine:latest AS ioquake3
RUN \
addgroup -g 1337 quake && \
adduser -D -h /home/quake -G quake -u 1337 quake && \
mkdir -pv /home/quake/.q3a/baseq3 && \
ln -sfv /config/dockerquake.cfg /home/quake/.q3a/baseq3/
COPY --from=ioquake3-build /build/tempinstall/ioq3ded.x86_64 /quake/
COPY static /static
EXPOSE 27960/udp
CMD /static/shell/entrypoint.sh