Sign inSign up

cheanan/puppeteer

By cheanan

•Updated over 7 years ago

This puppeteer in a container has a script designed to capture a website in a set of screen sizes

Image
0

383

cheanan/puppeteer repository overview

⁠Puppeteer Container

This docker image runs puppeteer in a container. There is a script designed to run puppeteer to capture a website in a set of screen sizes.

⁠Cookies

To avoid cookie consent pop-ups and another pop-ups clouding the view of the screenshots, you can specify a set of cookies (name/value) in the settings.json (./storage/settings.json).

⁠Resolutions

There is a set of predefined resolutions in the settings.json file. You can change/remove/add the set of resolution profiles to your liking.

⁠Example Command

docker run -it --rm -v $(pwd)/storage:/app/storage -e url=https://chrisheanan.co.uk cheanan/puppeteer

⁠Commands

⁠Build

docker build -t cheanan/puppeteer:latest .

⁠Pull

docker pull cheanan/puppeteer

⁠Useful docker commands

  • docker ps -a see all containers
  • docker rm $(docker ps -aq) remove all docker containers
  • docker images list images
  • docker rmi $(docker images -q) remove all images

Tag summary

Content type

Image

Digest

Size

363.2 MB

Last updated

over 7 years ago

docker pull cheanan/puppeteer