Skip to content

Commit

Permalink
ci: switch to nginx user
Browse files Browse the repository at this point in the history
  • Loading branch information
bradjohnl authored Nov 8, 2023
1 parent e843b5e commit 46bea67
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,9 @@ 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 \
&& addgroup nobody nginx
&& chown -R nginx:nginx /var/log/nginx

USER nobody
USER nginx

# Healthcheck NGINX is running
HEALTHCHECK --interval=5s --timeout=3s --start-period=5s --retries=3 CMD curl --fail http://localhost:8090/ || exit 1
Expand Down

0 comments on commit 46bea67

Please sign in to comment.