diff --git a/images/nginx/rootfs/Dockerfile b/images/nginx/rootfs/Dockerfile index 0cb0119a43..ccf70f1439 100644 --- a/images/nginx/rootfs/Dockerfile +++ b/images/nginx/rootfs/Dockerfile @@ -33,41 +33,42 @@ COPY --from=builder /opt /opt COPY --from=builder /etc/nginx /etc/nginx COPY --from=builder entrypoint.sh /usr/local/entrypoint.sh -RUN apk update \ +RUN chmod +x /usr/local/entrypoint.sh \ + && apk update \ && apk upgrade \ && apk add -U --no-cache \ - bash \ - openssl \ - pcre \ - zlib \ - geoip \ - curl \ - ca-certificates \ - patch \ - yajl \ - lmdb \ - libxml2 \ - libmaxminddb \ - yaml-cpp \ - dumb-init \ - nano \ - tzdata \ + bash \ + openssl \ + pcre \ + zlib \ + geoip \ + curl \ + ca-certificates \ + patch \ + yajl \ + lmdb \ + libxml2 \ + libmaxminddb \ + yaml-cpp \ + dumb-init \ + nano \ + tzdata \ && ln -s /usr/local/nginx/sbin/nginx /sbin/nginx \ && adduser -S -D -H -u 101 -h /usr/local/nginx \ - -s /sbin/nologin -G www-data -g www-data www-data \ + -s /sbin/nologin -G www-data -g www-data www-data \ && bash -eu -c ' \ writeDirs=( \ - /var/log/nginx \ - /var/lib/nginx/body \ - /var/lib/nginx/fastcgi \ - /var/lib/nginx/proxy \ - /var/lib/nginx/scgi \ - /var/lib/nginx/uwsgi \ - /var/log/audit \ + /var/log/nginx \ + /var/lib/nginx/body \ + /var/lib/nginx/fastcgi \ + /var/lib/nginx/proxy \ + /var/lib/nginx/scgi \ + /var/lib/nginx/uwsgi \ + /var/log/audit \ ); \ for dir in "${writeDirs[@]}"; do \ - mkdir -p ${dir}; \ - chown -R www-data.www-data ${dir}; \ + mkdir -p ${dir}; \ + chown -R www-data.www-data ${dir}; \ done' EXPOSE 80 443