
Yeah, we can run Chromium using Alpine Linux, but we'll need a few extra steps to make it run. it's important to know what are the different between the available variants. we want to run a web browser inside a container. This is because it was tested with the latest Chromium stable release. If we use the Docker images for Node.js v14 LTS Gallium, when installing the chromium package from apt, it will be v90.0, which can have compatibility issues with the latest Puppeteer. This guide helps to use Puppeteer inside a Docker container using the Node.js image.

*** You are running in headless mode.Ĭrash Annotation GraphicsCriticalError: |: glxtest: libpci missing (t=0.323898) : glxtest: libpci missingĬrash Annotation GraphicsCriticalError: |: glxtest: libpci missing (t=0.323898) |: glxtest: libGL.so.1 missing (t=0.32393) : glxtest: libGL.so.1 missingĬrash Annotation GraphicsCriticalError: |: glxtest: libpci missing (t=0.323898) |: glxtest: libGL.so.1 missing (t=0.32393) |: glxtest: libEGL missing (t=0.323941) : glxtest: libEGL missingĬrash Annotation GraphicsCriticalError: |: glxtest: libpci missing (t=0.323898) |: glxtest: libGL.so.1 missing (t=0.32393) |: glxtest: libEGL missing (t=0.323941) |: No GPUs detected via PCI (t=0.Puppeteer is a Node.js library which provides a high-level API to control Chromium (or Firefox) browsers over the DevTools Protocol. & 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)

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.
