Skip to content

Commit

Permalink
Restart nginx if master process dies
Browse files Browse the repository at this point in the history
  • Loading branch information
aledbf committed Nov 29, 2016
1 parent 666cbf5 commit 9f3225f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions controllers/nginx/rootfs/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

0 comments on commit 9f3225f

Please sign in to comment.