Skip to content

Commit

Permalink
update docker and puppeteer
Browse files Browse the repository at this point in the history
  • Loading branch information
mlake committed Nov 25, 2024
1 parent 38b20a2 commit f61ac5b
Show file tree
Hide file tree
Showing 3 changed files with 164 additions and 258 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# https://github.com/GoogleChrome/puppeteer/blob/master/docs/troubleshooting.md#running-puppeteer-in-docker
#
# can't use bullseye because it doesn't have libappindicator (unless installed manually)
FROM node:20.11-buster-slim
FROM node:22.11-bookworm-slim

WORKDIR /usr/app

Expand Down Expand Up @@ -46,7 +46,7 @@ RUN apt-get update && apt-get install -y \
fonts-wqy-zenhei \
fonts-noto-color-emoji

RUN npm install npm@10.4.0 -g \
RUN npm install npm@10.9.1 -g \
&& apt-get install -y wget gnupg ca-certificates procps dumb-init \
# We install Chrome to get all the OS level dependencies, but Chrome itself
# is not actually used as it's packaged in the node puppeteer library.
Expand All @@ -63,6 +63,6 @@ RUN npm install npm@10.4.0 -g \
# && wget --quiet https://raw.githubusercontent.com/vishnubob/wait-for-it/master/wait-for-it.sh -O /usr/sbin/wait-for-it.sh \
# && chmod +x /usr/sbin/wait-for-it.sh \
# Install Puppeteer under /node_modules so it's available system-wide
&& npm install -g puppeteer@22.2.0 --unsafe-perm=true
&& npm install -g puppeteer@23.9.0 --unsafe-perm=true
# be sure that the version of puppeteer matches the version of google-chrome-stable, otherwise possible high CPU
ENTRYPOINT ["/usr/bin/dumb-init", "--"]
Loading

0 comments on commit f61ac5b

Please sign in to comment.