Created
September 21, 2022 08:12
-
-
Save denihida1216/4160e2c167e562c65c606a33a8365100 to your computer and use it in GitHub Desktop.
whatsappweb js setting puppeteer executablePath google-chrome in docker
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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