Restart nginx if master process dies

This commit is contained in:
Manuel de Brito Fontes 2016-11-26 22:03:42 -03:00
parent 666cbf5089
commit 81cd7782c6

View file

@ -23,4 +23,10 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y \
COPY . /
# https://blog.phusion.nl/2015/01/20/docker-and-the-pid-1-zombie-reaping-problem
RUN curl -sSL -o /sbin/dumb-init https://github.com/Yelp/dumb-init/releases/download/v1.2.0/dumb-init_1.2.0_amd64 && \
chmod +x /sbin/dumb-init
ENTRYPOINT ["/sbin/dumb-init", "--"]
CMD ["/nginx-ingress-controller"]