/puppeteer-docker-RPi

Primary LanguageJavaScriptMIT LicenseMIT

puppeteer-docker-RPi

This repository provides the code accompanying the article: Running Puppeteer in a Docker Container on Raspberry Pi

Running puppeteer in a Docker container on Raspberry Pi

Environment:

  • Hardware: Raspberry Pi 2 Model B Rev 1.1
  • OS: Raspbian GNU/Linux 11 (bullseye)

Test that the app works without Docker

  • clone the repo: git clone https://github.com/moozzyk/puppeteer-docker-RPi

  • install Chromium: sudo apt-get update && sudo apt-get install chromium -y

  • install dependencies: PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true npm install

  • run application: node index.js:

    image

Test that the app works inside a Docker container

  • Build the image: docker build . -t puppeteer-docker

  • Run the application inside a Docker container: docker run puppeteer-docker

    image