Skip to content

Commit

Permalink
Dockerfile: safely remove user www-data if present
Browse files Browse the repository at this point in the history
I honestly don't know why the user xfs should get removed. As far as I
see there is no such user and even if there was, it would not be a
problem.
  • Loading branch information
pinknet committed Jun 21, 2024
1 parent 1308fcb commit 421fe00
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ RUN docker-php-ext-install \
RUN /usr/sbin/setcap CAP_NET_BIND_SERVICE=+eip /usr/local/bin/php

# remove unnecessary users
RUN deluser xfs && \
deluser www-data
RUN getent passwd www-data >/dev/null 2>&1 && deluser www-data || true

# sudo: workaround for https://bugzilla.redhat.com/show_bug.cgi?id=1773148
RUN echo "Set disable_coredump false" > /etc/sudo.conf
Expand Down

0 comments on commit 421fe00

Please sign in to comment.