-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
21 lines (18 loc) · 842 Bytes
/
Dockerfile
File metadata and controls
21 lines (18 loc) · 842 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM steamcmd/steamcmd AS steamcmd
RUN steamcmd +force_install_dir /data +login anonymous +app_update 4020 validate +quit;
FROM ubuntu:25.04
RUN groupmod -n legendary "$(getent group 1000 | cut -d: -f1)" \
&& usermod -l legendary -d /home/legendary -m "$(getent passwd 1000 | cut -d: -f1)"
COPY --chown=legendary:legendary --from=steamcmd /data /data
RUN dpkg --add-architecture i386 \
&& apt-get update \
&& apt-get install -y --no-install-recommends ca-certificates lib32gcc-s1 libstdc++6:i386 \
libtinfo6:i386 libcurl4:i386 libcurl4 libstdc++6 libgcc-s1 \
&& rm -rf /var/lib/apt/lists/*
COPY entrypoint.sh /usr/local/bin
RUN chmod +x /usr/local/bin/entrypoint.sh
USER legendary
RUN mkdir -p /data/garrysmod/cache
COPY server.cfg /data/defaults/server.cfg
WORKDIR /data
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]