1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-28 09:08:36 +02:00

update browserless

This commit is contained in:
kevin 2024-04-15 15:00:40 +08:00
parent dd4a70632e
commit 6215fe7016

View File

@ -80,6 +80,10 @@ driver.quit()
```bash ```bash
$ docker-compose up -d $ docker-compose up -d
$ crontab -l
0 */4 * * * docker restart browserless-browserless-1
5 * * * * docker exec browserless-browserless-1 find /tmp -name '.com.google.Chrome.*' -mmin +60 -exec rm -rf {} \;
$ npm install puppeteer-core $ npm install puppeteer-core
$ node screenshot.js $ node screenshot.js
$ imgcat google.png $ imgcat google.png