Skip to content

Instantly share code, notes, and snippets.

@mikemix
Created August 28, 2022 19:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikemix/97a340d4e0cbcfa7325c22e4a6612c5f to your computer and use it in GitHub Desktop.
Save mikemix/97a340d4e0cbcfa7325c22e4a6612c5f to your computer and use it in GitHub Desktop.
Recreating www-data user in Alpine
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