Debian 9 & PhantomJS based CasperJS image for Docker.
Why CasperJS & PhantomJS?
They are basically great tools for creating Automated web based test suites.
CasperJS allows you to build full navigation scenarios using high-level functions and a straight forward interface to accomplish all sizes of tasks.
PhantomJS is a headless WebKit scriptable with a JavaScript API. It has fast and native support for various web standards: DOM handling, CSS selector, JSON, Canvas, and SVG.
Example: Run hello.js from your working directory in a container.
docker run --rm -v $(pwd)/hello.js:/hello.js obgr/d-casperjs phantomjs hello.js
Example: Run casper-test.js from your working directory in a container.
docker run --rm -v $(pwd)/casper-test.js:/casper-test.js obgr/d-casperjs casperjs casper-test.js
docker run -it obgr/d-casperjs:latest
docker pull obgr/d-casperjs:latest
Start off your Dockerfile with:
FROM obgr/d-casperjs:latest