Skip to content

Commit

Permalink
Fix chown command to use colon for user and group separation
Browse files Browse the repository at this point in the history
  • Loading branch information
Everhard authored and TrafeX committed Aug 26, 2024
1 parent ff7ef50 commit e5c5ec7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e5c5ec7

Please sign in to comment.