Image ready to be used with node-puppeteer in headless mode
7.2K
Puppeteer does not run in docker nativley as chrome depends on some external libraries that are not shipped with the npm package.
This image has chrome and all its dependencies already installed, so you can just grab it for your pipelines and stuff and run your puppeteer project like on your local machine.
Just remember to set puppeteer to headless mode. Most CI-tools set an environment variable CI to something, I additionally added an environment variable PUPPETEER_HEADLESS=true you can check against. You can propably just use the following to automatically switch between headless in Docker and headfull on your local machine:
const headless = process.env.CI || process.env.PUPPETEER_HEADLESS || false;
Currently I build this image based on node:latest, node:12, node:10 and node:8. I plan on adding every major node version that is avaiable as node image on the dockerhub, but I wil propably forget to do so.
The images are rebuild every night to always have the newest node versions and security fixes.
Content type
Image
Digest
Size
521.1 MB
Last updated
almost 5 years ago
docker pull aliginberlin/puppeteer