Created
August 28, 2022 19:32
-
-
Save mikemix/97a340d4e0cbcfa7325c22e4a6612c5f to your computer and use it in GitHub Desktop.
Recreating www-data user in Alpine
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ARG USER_UID=82 | |
ARG USER_GID=82 | |
# Recreate www-data user with user id matching the host | |
RUN deluser --remove-home www-data && \ | |
addgroup -S -g ${USER_GID} www-data && \ | |
adduser -u ${USER_UID} -D -S -G www-data www-data |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment