-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlinux.Dockerfile
More file actions
61 lines (41 loc) · 1.86 KB
/
Copy pathlinux.Dockerfile
File metadata and controls
61 lines (41 loc) · 1.86 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
FROM debian:bookworm-slim AS outcast-builder
RUN apt-get update && apt-get install -y \
cmake debhelper devscripts git libsdl2-dev libgl1-mesa-dev libopenal-dev libjpeg-dev libpng-dev zlib1g-dev libminizip-dev
COPY ./sources/jk2mv /jk2mv
# Generate the default dedicated server configurations
RUN cd /jk2mv/build && ./build-dedicated.sh
# Build the dedicated server binaries
RUN cd /jk2mv/build/Linux-x86_64-dedicated && make;
#---------------------------------
FROM debian:bookworm-slim
ARG BUILD_DATE=unspecified \
BUILD_NODE=unspecified \
GIT_REVISION=unspecified
HEALTHCHECK NONE
RUN dpkg --add-architecture i386 && \
apt-get update && apt-get install -y \
locales locales-all && \
apt-get clean && \
echo "LC_ALL=en_US.UTF-8" >> /etc/environment && \
rm -rf /tmp/* /var/lib/apt/lists/* /var/tmp/*;
ENV LANG=en_US.UTF-8 LANGUAGE=en_US.UTF-8 LC_ALL=en_US.UTF-8
LABEL architecture="amd64" \
com.lacledeslan.build-node=$BUILD_NODE \
maintainer="Laclede's LAN <contact@lacledeslan.com>" \
org.opencontainers.image.created="$BUILD_DATE" \
org.opencontainers.image.description="Jedi Knight II: Jedi Outcast Dedicated Server" \
org.opencontainers.image.revision=$GIT_REVISION \
org.opencontainers.image.source="https://github.com/LacledesLAN/gamesvr-jk2outcast" \
org.opencontainers.image.vendor="Laclede's LAN"
# Set up Enviornment
RUN useradd --home /app --gid root --system JK2Outcast && \
mkdir -p /app && \
chown JK2Outcast:root -R /app;
COPY --chown=JK2Outcast:root --from=outcast-builder /jk2mv/build/Linux-x86_64-dedicated/out/Release/base /app/base
COPY --chown=JK2Outcast:root --from=outcast-builder /jk2mv/build/Linux-x86_64-dedicated/out/Release /app
COPY --chown=JK2Outcast:root dist/ /app/base
RUN chmod +x /app/jk2mvded
WORKDIR /app
USER JK2Outcast
CMD ["/bin/bash"]
ONBUILD USER root