Skip to content

Instantly share code, notes, and snippets.

@denihida1216
Created September 21, 2022 08:12
Show Gist options
  • Save denihida1216/4160e2c167e562c65c606a33a8365100 to your computer and use it in GitHub Desktop.
Save denihida1216/4160e2c167e562c65c606a33a8365100 to your computer and use it in GitHub Desktop.
whatsappweb js setting puppeteer executablePath google-chrome in docker
const client = new Client({
restartOnAuthFail: true,
puppeteer: {
headless: true,
executablePath: '/usr/bin/google-chrome',// <- config inside docker works
args: [
"--no-sandbox",
"--disable-setuid-sandbox",
"--disable-dev-shm-usage",
"--disable-accelerated-2d-canvas",
"--no-first-run",
"--no-zygote",
"--single-process", // <- this one doesn't works in Windows
"--disable-gpu",
],
},
authStrategy: new LocalAuth(),
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment