diff --git a/Dockerfile b/Dockerfile index 01e7cef..3c962e8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -44,7 +44,8 @@ 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 + chown -R nginx:users /etc/nginx && \ + mkdir /var/run/nginx USER nginx:users