Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

faiconqg/docker-nightmare

Open more actions menu
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker-Nightmare headless node image

A node:latest compiled with nightmare support running in xvfb.

Usage:

In your project, use this image:

FROM quay.io/ivanvanderbyl/docker-nightmare:latest

ADD . /workspace
RUN yarn install # if you have package.json and/or yarn.lock

CMD "index.js"

Then build the image:

docker build -t myscraper .

Run your nightmare script (assuming it was called index.js):

docker run myscraper:latest --rm index.js

See a working example for DuckDuckGo

Technical details

  • Node is latest from docker hub, so probably 7.2+ at time of writing
  • Your script is executed with Xvfb running in the background on display :99.0 at 1280x2000x24
  • node is executed with --harmony-async-await flag.
  • Most of this is based on help from segment-boneyard/nightmare#224

About

Nightmare JS Headless image

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.