Sign inSign up

fritteli/headless-nodejs

By fritteli

•Updated about 6 years ago

Headless Chrome and Firefox with Node 8

Image
1

10K+

fritteli/headless-nodejs repository overview

⁠Docker image with headless Chrome, Firefox and Node 8

Ideal for running end-to-end integration tests in CI.

docker run -itv $PWD:/tests fritteli/headless-nodejs

This will open a bash prompt where you can npm install && npm test or whatever.

⁠Browsers

Start Firefox with firefox --headless.

Start Chrome with google-chrome --headless --disable-gpu --no-sandbox.

⁠Warning

Headless Chrome currently requires the --no-sandbox flag in order to run in a container. This is potentially unsafe so you should not use it on untrusted sites.

⁠Other software

Image includes yarn, git and build-essential required for building native NPM modules.

Tag summary

Content type

Image

Digest

Size

417 MB

Last updated

about 6 years ago

docker pull fritteli/headless-nodejs