DEV Community

loading...

Discussion on: Generate images from HTML in Node.js

Collapse
wlun001 profile image
Wei Lun

This won't work on Docker, need to install anything other that npm install?

Collapse
sebrojas14 profile image
Sebastián Rojas Ricaurte

You have to follow this for Docker github.com/puppeteer/puppeteer/blo... (tehere is specifict instructiosn for alpine also) and send this in puppeteerArgs when you call nodeHtmlToImage:

puppeteerArgs: {
headless: true,
args: [
"--no-sandbox",
"--remote-debugging-address=0.0.0.0",
"--remote-debugging-port=9222",
],
}

Collapse
sebrojas14 profile image