fix 'permission denied' error on image build
This commit is contained in:
parent
8a578c9f4a
commit
a129040efa
1 changed files with 2 additions and 2 deletions
|
@ -76,12 +76,12 @@ RUN apk add --no-cache libcap \
|
||||||
&& apk del libcap \
|
&& apk del libcap \
|
||||||
&& ln -sf /usr/local/nginx/sbin/nginx /usr/bin/nginx
|
&& 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
|
# Create symlinks to redirect nginx logs to stdout and stderr docker log collector
|
||||||
RUN ln -sf /dev/stdout /var/log/nginx/access.log \
|
RUN ln -sf /dev/stdout /var/log/nginx/access.log \
|
||||||
&& ln -sf /dev/stderr /var/log/nginx/error.log
|
&& ln -sf /dev/stderr /var/log/nginx/error.log
|
||||||
|
|
||||||
|
USER www-data
|
||||||
|
|
||||||
ENTRYPOINT ["/usr/bin/dumb-init", "--"]
|
ENTRYPOINT ["/usr/bin/dumb-init", "--"]
|
||||||
|
|
||||||
CMD ["/nginx-ingress-controller"]
|
CMD ["/nginx-ingress-controller"]
|
||||||
|
|
Loading…
Reference in a new issue