A GoogleChrome/puppeteer docker container.
docker run -v <project folder path>:/app -t oozman/puppeeter
Where <project folder path>
is your absolute path to your node.js project folder.
Example:
docker run -v /Users/johndoe/awesomeapp:/app -t oozman/puppeteer
- Make sure your project contains
index.js
file. This is the one that will be called ondocker run
. - It's recommended when declaring a puppeteer instance, make sure you add
args: ['--no-sandbox'] }
as parameters. Example:const browser = await puppeteer.launch({ args: ['--no-sandbox'] });
This container has the following pre-installed:
- node 8.5+
- npm 5.3+
- yarn