
& chown -R pptruser:pptruser /home/pptruser \Īlso I tried firefox in headless mode for grabbing screenshot, that too throws error. & mkdir -p /home/pptruser/Downloads /app \ RUN addgroup -S pptruser & adduser -S -G pptruser pptruser \ RUN yarn add Add user so we don't need -no-sandbox. # Puppeteer v10.0.0 works with Chromium 92. PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser We'll be using the installed package.ĮNV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true \ # Tell Puppeteer to skip installing Chrome. I followed the troubleshooting docs at puppeteer git and added these lines to my dockerfile: at onClose (/usr/local/lib/node_modules/pageres-cli/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserRunner.js:193:20)Īt ChildProcess(/usr/local/lib/node_modules/pageres-cli/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserRunner.js:184:79) They have been ignored, or old ones used instead.I'm trying to use pageres in my bash script for grabbing screenshot in heruko.īut running pageres with alpine:latest throws error with puppeteer.

Got following errors: Err:1 stretch/updates InRelease # Run everything after as non-privileged user. & chown -R pptruser:pptruser /package-lock.json & chown -R pptruser:pptruser /package.json \ & chown -R pptruser:pptruser /node_modules \ & chown -R pptruser:pptruser /home/pptruser \ & groupadd -r pptruser & useradd -r -g pptruser -G audio,video pptruser \ # same layer as npm install to keep re-chowned files from using up several hundred MBs more space # Install puppeteer so it's available in the container. # ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true # Uncomment to skip the chromium download when installing puppeteer. # uncomment the following lines to have `dumb-init` as PID 1 # If running Docker >= 1.13.0 use docker run's -init arg to reap zombie processes, otherwise & apt-get install -y google-chrome-stable fonts-ipafont-gothic fonts-wqy-zenhei fonts-thai-tlwg fonts-kacst fonts-freefont-ttf libxss1 \ & sh -c 'echo "deb stable main" > /etc/apt//google.list' \ # Note: this installs the necessary libs to make the bundled version of Chromium that Puppeteer # Install latest chrome dev package and fonts to support major charsets (Chinese, Japanese, Arabic, Hebrew, Thai and a few others) I also used below docker file from but ran into multiple errors during execution: FROM node:14-slim I came across this article but most of the packages mentioned in this article are blocked within my org including chromium executable.

There was buildkite repo but it is not longer supporting docker image for puppeteer. I am unable to find official docker image for Puppeteer.
