added to nginx docker - www-data is now part of nginx group, and tmp folder allow nginx group to read and execute

This commit is contained in:
asus
2023-11-14 14:15:56 +01:00
parent 247bc6ae5c
commit 14723c240d
5 changed files with 105 additions and 110 deletions

View File

@@ -16,7 +16,9 @@ RUN mkdir -p /var/log/nginx/
# create user www-data and assign it to group www-data
RUN adduser -S www-data && \
adduser www-data www-data
adduser www-data www-data && \
adduser www-data nginx && \
chmod +rwx /var/lib/nginx/tmp
ARG WP_URL
ARG MAX_UPLOAD_SIZE