-
Notifications
You must be signed in to change notification settings - Fork 138
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: using dumb-init to help prevent zombie chrome processes
- Loading branch information
1 parent
96ade9e
commit 1d59882
Showing
1 changed file
with
4 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 [email protected] && yarn cache clean | ||
|
@@ -20,4 +22,6 @@ RUN chmod +x /tools/* && mkdir /screenshots | |
|
||
WORKDIR /app | ||
|
||
ENTRYPOINT ["dumb-init", "--"] | ||
|
||
CMD ["node", "index.js"] |