fix 'permission denied' error on image build

This commit is contained in:
Dennis Prochko 2023-08-15 19:41:52 +03:00
parent 8a578c9f4a
commit a129040efa

View file

@ -76,12 +76,12 @@ RUN apk add --no-cache libcap \
&& apk del libcap \
&& ln -sf /usr/local/nginx/sbin/nginx /usr/bin/nginx
USER www-data
# Create symlinks to redirect nginx logs to stdout and stderr docker log collector
RUN ln -sf /dev/stdout /var/log/nginx/access.log \
&& ln -sf /dev/stderr /var/log/nginx/error.log
USER www-data
ENTRYPOINT ["/usr/bin/dumb-init", "--"]
CMD ["/nginx-ingress-controller"]