arbing / puppeteer-docker

Puppeteer docker that works both in amd64 and arm64 architecture

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Puppeteer Docker

Puppeteer docker that works both in amd64 and arm64 architecture which includes dumb-init and wkhtmltopdf.

Build Docker Image

make build

Run Docker Image

make run

example

Check the example folder for a working example.

Notes

Use the following code to launch puppeteer.

const browser = await puppeteer.launch({
    headless: true,
    args: [
      "--no-sandbox",
      "--disable-setuid-sandbox",
      "--disable-dev-shm-usage",
    ],
  });

Credit

This docker image is based on the work of Daniel and his docker-puppeteer

About

Puppeteer docker that works both in amd64 and arm64 architecture

License:MIT License


Languages

Language:Dockerfile 71.8%Language:Makefile 27.3%Language:JavaScript 0.9%