-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlinux.Dockerfile
41 lines (28 loc) · 1.12 KB
/
linux.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
# escape=`
FROM lacledeslan/steamcmd:linux as quake2-builder
ARG contentServer=content.lacledeslan.net
RUN echo "\nDownloading custom LL content from $contentServer" &&`
mkdir --parents /output &&`
cd /output/ &&`
wget -rkpN -nH --no-verbose --cut-dirs=2 -R "*.htm*,*.ico" -e robots=off "http://"$contentServer"/fastDownloads/quake2/" &&`
echo "removing cruft that may have slipped in" &&`
rm ./logos -rf
#=======================================================================`
FROM lacledeslan/gamesvr-quake2
HEALTHCHECK NONE
ARG BUILDNODE=unspecified
ARG SOURCE_COMMIT=unspecified
# `RUN true` lines are work around for https://github.com/moby/moby/issues/36573
COPY --chown=Quake2:root --from=quake2-builder /output /app
RUN true
COPY --chown=Quake2:root /dist/app /app
RUN true
COPY --chown=Quake2:root /dist/linux /app
# UPDATE USERNAME & ensure permissions
RUN usermod -l Quake2Freeplay Quake2 &&`
chmod -R ug+rw /app &&`
chmod +x /app/ll-tests/*.sh && chmod +x /app/q2pro_server_x64 && chmod +x /app/quake2;
USER Quake2Freeplay
WORKDIR /app/
CMD ["/bin/bash"]
ONBUILD USER root