From c5e2ce98d23e8b43c8e0f581062f2ebf71dd2d2c Mon Sep 17 00:00:00 2001 From: Unknown Date: Mon, 30 Oct 2017 09:25:02 -0700 Subject: [PATCH] Fix an issue with zombie Chrome processes in the app container https://github.com/GoogleChrome/puppeteer/issues/615 --- docker/app/Dockerfile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docker/app/Dockerfile b/docker/app/Dockerfile index 83cc150..3359335 100644 --- a/docker/app/Dockerfile +++ b/docker/app/Dockerfile @@ -10,5 +10,13 @@ RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key apt-get update &&\ apt-get install -y google-chrome-unstable +# Install dumb-init +# https://github.com/Yelp/dumb-init +# This fixes issues with zombie Chrome processes: +# https://github.com/GoogleChrome/puppeteer/issues/615 +RUN wget https://github.com/Yelp/dumb-init/releases/download/v1.2.0/dumb-init_1.2.0_amd64.deb &&\ + dpkg -i dumb-init_*.deb + WORKDIR /app +ENTRYPOINT ["/usr/bin/dumb-init", "--"] CMD ["yarn", "cron"]