Public Repository

Last pushed: 3 years ago
Short Description
PhantomJS is a headless WebKit scriptable with a JavaScript API.
Full Description

Supported tags and respective Dockerfile links

1.9.8, 1.9, latest (Dockerfile)

1.9.8-onbuild, 1.9-onbuild, onbuild (onbuild/Dockerfile)

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?

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.


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 :

How to use this image

Create a Dockerfile in your PhantomJS app project

FROM seo4ajax/phantomjs:1.9-onbuild

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.

User Feedback


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.

Docker Pull Command