[BUGFIX] add nobody to www-data group to allow correct ownerships

This commit is contained in:
mattclegg 2020-01-09 10:48:36 +01:00
parent c0e969be7d
commit f0aa6e51d4
No known key found for this signature in database
GPG Key ID: 38F89AD4DDF94EC3

View File

@ -51,6 +51,7 @@ RUN \
/etc/services.d/php-fpm7/supervise/control \ /etc/services.d/php-fpm7/supervise/control \
/etc/s6/services/s6-fdholderd/supervise/control \ /etc/s6/services/s6-fdholderd/supervise/control \
&& setcap 'cap_net_bind_service=+ep' /usr/sbin/nginx \ && setcap 'cap_net_bind_service=+ep' /usr/sbin/nginx \
&& adduser nobody www-data \
&& chown -R nobody.www-data /etc/services.d /etc/s6 /run /srv/* /var/lib/nginx /var/www \ && chown -R nobody.www-data /etc/services.d /etc/s6 /run /srv/* /var/lib/nginx /var/www \
# Clean up # Clean up
&& rm -rf "${GNUPGHOME}" /tmp/* \ && rm -rf "${GNUPGHOME}" /tmp/* \