Skip to content

Commit 159551e

Browse files
committed
chore: update Dockerfile to remove steam user
* Replaced the removal of the default `ubuntu` user with a check to remove the `steam` user if present. * This change ensures that the Docker image is cleaner and does not include unnecessary users.
1 parent ef4e3d7 commit 159551e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Dockerfile.ubuntu-2404

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55
#
66

77
FROM ghcr.io/gameservermanagers/steamcmd:ubuntu-24.04
8-
## Remove ubuntu user added in 24.04 by default
9-
RUN touch /var/mail/ubuntu && chown ubuntu /var/mail/ubuntu && userdel -r ubuntu
8+
9+
## Remove steam user from upstream base image if present
10+
RUN if id -u steam >/dev/null 2>&1; then userdel -r steam || true; fi
1011

1112
LABEL maintainer="LinuxGSM <[email protected]>"
1213
ENV DEBIAN_FRONTEND noninteractive

0 commit comments

Comments
 (0)