Answer the question
In order to leave comments, you need to log in
How to correctly add a new user to a group via Dockerfile?
Hello, I need to add a new user
www-dataand add it to the group
nobodyi wrote something similar
RUN adduser -S www-data -G nobody
USER www-data
RUN chown -R nobody.nobody /var/www/html
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question