https://github.com/softonic/docker-puppeteer-headed
Puppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. This repository provides a Docker image to run Puppeteer in a chrome browser using headed (full) mode.
https://github.com/softonic/docker-puppeteer-headed
Last synced: about 1 year ago
JSON representation
Puppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. This repository provides a Docker image to run Puppeteer in a chrome browser using headed (full) mode.
- Host: GitHub
- URL: https://github.com/softonic/docker-puppeteer-headed
- Owner: softonic
- Created: 2024-10-02T08:27:20.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-09T09:32:19.000Z (over 1 year ago)
- Last Synced: 2025-02-14T04:51:16.421Z (over 1 year ago)
- Language: Shell
- Size: 11.7 KB
- Stars: 0
- Watchers: 8
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# docker-puppeteer-headed
Puppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. This repository provides a Docker image to run Puppeteer in a chrome browser using headed (full) mode.
This repository provides a Docker image with Puppeteer.
## Build
To build the Docker image yourself you can run the command:
```shell script
docker build -t softonic/puppeteer-headed:latest .
```
## Usage
You just need to run it via Docker:
```shell script
docker run \
--rm \
--name my-puppeteer \
--cap-add=SYS_ADMIN \
--init \
softonic/puppeteer-headed:latest
```
If you have a Javascript file to decide what and how to execute tests you could write your start file or an npm/yarn alias:
```shell script
docker run --rm --name my-puppeteer \
--cap-add=SYS_ADMIN \
--init \
--workdir=/app \
-v $PWD/:/app \
softonic/puppeteer-headed:latest \
yarn start
```