diff --git a/Dockerfile b/Dockerfile index 3c962e8..01e7cef 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/startscript.sh b/startscript.sh index a4060f2..89c8905 100644 --- a/startscript.sh +++ b/startscript.sh @@ -66,4 +66,4 @@ if [[ -z "${STREAM_KEY}" ]]; then ;; esac -nginx +nginx -g 'pid /tmp/nginx.pid;'