Skip to content

Commit

Permalink
ci: add user nobody to nginx group
Browse files Browse the repository at this point in the history
  • Loading branch information
bradjohnl authored Nov 8, 2023
1 parent d9f64b1 commit e843b5e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ RUN sed -i 's/;extension=zip/extension=zip/' /etc/php81/php.ini \
&& sed -i 's/;extension=bcmath/extension=bcmath/' /etc/php81/php.ini \
&& chmod -R 775 . \
&& chown -R nginx:nginx . \
&& chown -R nginx:nginx /var/log/nginx
&& chown -R nginx:nginx /var/log/nginx \
&& addgroup nobody nginx

USER nobody

Expand Down

0 comments on commit e843b5e

Please sign in to comment.