My puppeteer development environment.
git clone --recurse https://github.com/7db9a/puppeteer-dev-env
cd puppeteer-dev-env
docker build -t puppeteer docker-puppeteer
Run an example:
docker-compose up
It screenshots example.com and outputs screenshot.png. To run other examples, see Examples.
Recreate the container after a code change:
docker-compose up --force-recreate
The host's project directory is mounted to the container, per docker-compose.yml
instructions.
Uncomment an example in docker-compose.yml
and then run docker-compose up
.