This commit is contained in:
parent
beb5fd2023
commit
9e8b872200
@ -44,8 +44,7 @@ RUN apt-get update && \
|
||||
ln -sf /dev/stderr /var/log/nginx/error.log && \
|
||||
useradd -r -d /var/cache/nginx/ -s /sbin/nologin -U nginx && \
|
||||
ln -sf /usr/lib64/nginx/modules /etc/nginx/modules && \
|
||||
chown -R nginx:users /etc/nginx && \
|
||||
mkdir /var/run/nginx
|
||||
chown -R nginx:users /etc/nginx
|
||||
|
||||
USER nginx:users
|
||||
|
||||
|
@ -66,4 +66,4 @@ if [[ -z "${STREAM_KEY}" ]]; then
|
||||
;;
|
||||
esac
|
||||
|
||||
nginx
|
||||
nginx -g 'pid /tmp/nginx.pid;'
|
||||
|
Loading…
Reference in New Issue
Block a user