Browse Source

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.
pull/80/head
Daniel Gibbs 4 weeks ago
parent
commit
159551e73c
Failed to extract signature
  1. 5
      Dockerfile.ubuntu-2404

5
Dockerfile.ubuntu-2404

@ -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 <me@danielgibbs.co.uk>" LABEL maintainer="LinuxGSM <me@danielgibbs.co.uk>"
ENV DEBIAN_FRONTEND noninteractive ENV DEBIAN_FRONTEND noninteractive

Loading…
Cancel
Save