From 159551e73c8f92ccb6aa4760745b5140775b76e7 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Sat, 16 Aug 2025 21:08:04 +0000 Subject: [PATCH] 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. --- Dockerfile.ubuntu-2404 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile.ubuntu-2404 b/Dockerfile.ubuntu-2404 index 7aa9385..5ab8302 100644 --- a/Dockerfile.ubuntu-2404 +++ b/Dockerfile.ubuntu-2404 @@ -5,8 +5,9 @@ # FROM ghcr.io/gameservermanagers/steamcmd:ubuntu-24.04 -## Remove ubuntu user added in 24.04 by default -RUN touch /var/mail/ubuntu && chown ubuntu /var/mail/ubuntu && userdel -r ubuntu + +## Remove steam user from upstream base image if present +RUN if id -u steam >/dev/null 2>&1; then userdel -r steam || true; fi LABEL maintainer="LinuxGSM " ENV DEBIAN_FRONTEND noninteractive