Supported tags and respective
For more information about this image and its history, please see the relevant manifest file (library/phantomjs) in the seo4ajax/phantomjs-docker GitHub repo.
What is Phantom.js?
HEADLESS WEBSITE TESTING
Run functional tests with frameworks such as Jasmine, QUnit, Mocha, Capybara, WebDriver, and many others.
Programmatically capture web contents, including SVG and Canvas. Create web site screenshots with thumbnail preview.
Access and manipulate webpages with the standard DOM API, or with usual libraries like jQuery.
Monitor page loading and export as standard HAR files. Automate performance analysis using YSlow and Jenkins.
Official website : http://phantomjs.org
How to use this image
Create a Dockerfile in your PhantomJS app project
You can then build and run the Docker image:
docker build -t my-phantomjs-app . docker run -it --rm --name my-running-app my-phantomjs-app [phantomjs options] your-phantomjs-script.js
Run a single PhantomJS script
For many simple, single file projects, you may find it inconvenient to write a complete Dockerfile. In such cases, you can run a PhantomJS script by using the PhantomJS Docker image directly:
docker run -it --rm --name my-running-script -v "$(pwd)":/usr/src/myapp -w /usr/src/myapp seo4ajax/phantomjs:1.9 phantomjs your-phantomjs-script.js
Run in REPL mode
docker run --rm -it seo4ajax/phantomjs:1.9
View license information for the software contained in this image.
If you have any problems with or questions about this image, please contact us through a GitHub issue.
You are invited to contribute new features, fixes, or updates, large or small; we are always thrilled to receive pull requests, and do our best to process them as fast as we can.