Update nginx image

This commit is contained in:
Manuel Alejandro de Brito Fontes 2018-09-25 18:35:01 -03:00
parent 471049bd5b
commit 3f29e436f3
4 changed files with 7 additions and 5 deletions

View file

@ -20,8 +20,7 @@ WORKDIR /etc/nginx
RUN clean-install \
diffutils \
valgrind \
dumb-init
libcap2-bin
COPY . /
@ -43,6 +42,9 @@ RUN bash -eu -c ' \
&& chown www-data.www-data /etc/nginx/nginx.conf \
&& chown www-data.www-data /etc/nginx/opentracing.json
RUN setcap cap_net_bind_service=+ep /nginx-ingress-controller \
&& setcap -v cap_net_bind_service=+ep /nginx-ingress-controller
# Create symlinks to redirect nginx logs to stdout and stderr docker log collector
# This only works if nginx is started with CMD or ENTRYPOINT
RUN ln -sf /dev/stdout /var/log/nginx/access.log