-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlinux.Dockerfile
60 lines (43 loc) · 1.73 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# escape=`
FROM lacledeslan/steamcmd as seven-builder
ARG SKIP_STEAMCMD=false
# Copy cached build files (if any)
COPY --chown=SteamCMD:root ./dist/linux/steamcmd-cache /output
# Download 7 Days to Die Dedicated Server via SteamCMD
RUN if [ "$SKIP_STEAMCMD" = true ] ; then `
echo "\n\nSkipping SteamCMD install -- using only contents from steamcmd-cache\n\n"; `
else `
echo "\n\nDownloading 7 Days to Die Dedicated Server via SteamCMD"; `
/app/steamcmd.sh `
+force_install_dir /output `
+login anonymous `
+app_update 294420 validate `
+quit; `
fi;
COPY ./dist/linux/ll-tests /output/ll-tests
#=======================================================================
FROM debian:bookworm-slim
ARG BUILDNODE=unspecified
ARG SOURCE_COMMIT=unspecified
LABEL org.opencontainers.image.source https://github.com/LacledesLAN/gamesvr-7daystodie
LABEL org.opencontainers.image.title "7 Days to Die Dedicated Server"
LABEL org.opencontainers.image.url https://github.com/LacledesLAN/README.1ST
LABEL org.opencontainers.image.vendor "Laclede's LAN"
RUN dpkg --add-architecture i386 &&`
apt-get update && apt-get install -y `
ca-certificates lib32gcc-s1 libc6-i386 lib32stdc++6 locales locales-all tmux xmlstarlet &&`
apt-get clean &&`
echo "LC_ALL=en_US.UTF-8" >> /etc/environment &&`
rm -rf /var/lib/apt/lists/*;
ENV LANG=en_US.UTF-8
ENV LANGUAGE=en_US.UTF-8
# Set up Enviornment
RUN useradd --home /app --gid root --system 7DaysToDie &&`
mkdir -p /app &&`
chown 7DaysToDie:root -R /app;
COPY --chown=7DaysToDie:root --from=seven-builder /output /app
RUN chmod +x /app/ll-tests/*.sh;
USER 7DaysToDie
WORKDIR /app
CMD ["/bin/bash"]
ONBUILD USER root