Browse Source
* 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.pull/80/head
1 changed files with 3 additions and 2 deletions
@ -5,8 +5,9 @@ |
|||||
# |
# |
||||
|
|
||||
FROM ghcr.io/gameservermanagers/steamcmd:ubuntu-24.04 |
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 <[email protected]>" |
LABEL maintainer="LinuxGSM <[email protected]>" |
||||
ENV DEBIAN_FRONTEND noninteractive |
ENV DEBIAN_FRONTEND noninteractive |
||||
|
|||||
Loading…
Reference in new issue