Fix chown command to use colon for user and group separation

This commit is contained in:
Andrew Dorokhov
2024-08-24 23:32:33 +03:00
committed by Tim de Pater
parent ff7ef50798
commit e5c5ec7f7b

View File

@@ -43,7 +43,7 @@ COPY config/php.ini ${PHP_INI_DIR}/conf.d/custom.ini
COPY config/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
# Make sure files/folders needed by the processes are accessable when they run under the nobody user
RUN chown -R nobody.nobody /var/www/html /run /var/lib/nginx /var/log/nginx
RUN chown -R nobody:nobody /var/www/html /run /var/lib/nginx /var/log/nginx
# Switch to use a non-root user from here on
USER nobody