-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
38 lines (29 loc) · 939 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
FROM i386/alpine:3.20
RUN apk update && \
apk add \
bash \
curl \
dumb-init \
jq \
libarchive-tools \
logtail \
tzdata \
wget \
wine \
xvfb-run
ENV TZ=Europe/Moscow
RUN wineboot -i
WORKDIR /srv
ADD ./ ./
ARG archive=NFK-dedicated.zip
RUN wget https://github.com/NeedForKillTheGame/needforkill.ru/releases/download/server/$archive && \
bsdtar --strip-components=1 -xvf $archive && \
rm -f $archive
ARG modelDir=/srv/basenfk/models
ARG modelList="arctic crashed doom2 grunt halo keel klesk2 qforcer ranger rawsteel razor sorlag tankjr uriel2 utguyse visor xaero"
RUN for m in $modelList; do ln -s $modelDir/sarge $modelDir/$m; done
HEALTHCHECK --start-interval=30s --interval=30s --retries=3 CMD ./healthcheck.sh || kill 1
EXPOSE 29991/udp
EXPOSE 28991/tcp
ENTRYPOINT ["/usr/bin/dumb-init", "--", "./entrypoint.sh"]
CMD ["Server_MG3.exe"]