Skip to content

karanjthakkar/headless-chrome-node-docker

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

headless-chrome-node-docker

Docker Pulls Docker Pulls

Provides a Docker image with out of the box support for the recent release of cross-platform Headless Chrome(62.0.3198.0 dev), Node(node: 8.4.0, npm: 5.3.0) and Yarn(0.27.5)

Usage

# Dockerfile

FROM geekykaran/headless-chrome-node-docker:latest

CMD ["sh", "start-chrome.sh"]
# start-chrome.sh

google-chrome \
  --headless \
  --hide-scrollbars \
  --disable-gpu \
  --remote-debugging-port=9222

After building your docker image and running a container with it, you can connect to headless chrome inside the container on port 9222. If you're using Node.js, you can use chrome-remote-interface module to talk to Chrome via the Chrome Debugging Protocol

Image Size

177 MB compressed as of last build

License

MIT © Karan Thakkar

About

Docker image bundled with Google Chrome, Node and Yarn

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published