From 1d59882005fc3a3029ee52d2c10af152d1d64d72 Mon Sep 17 00:00:00 2001 From: alekzonder Date: Thu, 1 Feb 2018 11:51:23 +0700 Subject: [PATCH] feat: using dumb-init to help prevent zombie chrome processes --- Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Dockerfile b/Dockerfile index ab927ec..6291a04 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,6 +6,8 @@ libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 li libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 \ libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 \ ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget && \ +wget https://github.com/Yelp/dumb-init/releases/download/v1.2.1/dumb-init_1.2.1_amd64.deb && \ +dpkg -i dumb-init_*.deb && rm -f dumb-init_*.deb && \ apt-get clean && apt-get autoremove -y && rm -rf /var/lib/apt/lists/* RUN yarn global add puppeteer@1.0.0 && yarn cache clean @@ -20,4 +22,6 @@ RUN chmod +x /tools/* && mkdir /screenshots WORKDIR /app +ENTRYPOINT ["dumb-init", "--"] + CMD ["node", "index.js"]