diff --git a/Dockerfile b/Dockerfile index da88734a7..88e05f531 100644 --- a/Dockerfile +++ b/Dockerfile @@ -59,9 +59,8 @@ RUN apk --no-cache add \ # Remove default server definition && rm /etc/nginx/http.d/default.conf \ # Make sure files/folders needed by the processes are accessable when they run under the nobody user - && chown -R nobody.nobody /run \ - && chown -R nobody.nobody /var/lib/nginx \ - && chown -R nobody.nobody /var/log/nginx + && mkdir -p /run /var/lib/nginx /var/www/html /var/log/nginx \ + && chown -R nobody:nobody /run /var/lib/nginx /var/www/html /var/log/nginx # Add configuration files COPY --chown=nobody rootfs/ /