-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlinux.Dockerfile
More file actions
53 lines (38 loc) · 1.67 KB
/
linux.Dockerfile
File metadata and controls
53 lines (38 loc) · 1.67 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
# escape=`
FROM lacledeslan/steamcmd AS jb3-builder
# Download Jabroni Brawl: Episode 3 Dedicated Server
RUN mkdir --parents /output &&`
/app/steamcmd.sh +force_install_dir /output +login anonymous +app_update 869800 validate +quit;
# Copy test scripts
COPY ./dist/linux/ll-tests /output/ll-tests
#=======================================================================
FROM debian:trixie-slim
ARG BUILDNODE=unspecified
ARG SOURCE_COMMIT=unspecified
HEALTHCHECK NONE
RUN dpkg --add-architecture i386 &&`
apt-get update && apt-get install -y `
ca-certificates locales locales-all tmux &&`
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 com.lacledeslan.build-node=$BUILDNODE `
org.label-schema.schema-version="1.0" `
org.label-schema.url="https://github.com/LacledesLAN/README.1ST" `
org.label-schema.vcs-ref=$SOURCE_COMMIT `
org.label-schema.vendor="Laclede's LAN" `
org.label-schema.description="Jabroni Brawl: Episode 3 Dedicated Server" `
org.label-schema.vcs-url="https://github.com/LacledesLAN/gamesvr-jabronibrawl3"
# Set up Environment
RUN useradd --home /app --gid root --system JabroniBrawl3 &&`
mkdir --parents /app/.steam/sdk64 &&`
chown JabroniBrawl3:root -R /app;
COPY --chown=JabroniBrawl3:root --from=jb3-builder /output /app
RUN chmod +x /app/ll-tests/*.sh &&`
echo $'\n\nLinking steamclient.so to prevent srcds_run errors' &&`
ln -sf /app/linux64/steamclient.so /app/.steam/sdk64/steamclient.so
USER JabroniBrawl3
WORKDIR /app
CMD ["/bin/bash"]
ONBUILD USER root