This Docker image dkdde/phantomjs-binaries
consists of
- static compiled phantomjs binaries (v1.9.2, v1.9.7 and v2.1.1)
to be run as Docker Data Volume Container.
Download latest Docker image:
$ docker pull dkdde/phantomjs-binaries
Create data volume container, name it phantomjs
and expose /home/jenkins/.phantomjs
:
$ docker create -v /home/jenkins/.phantomjs --name phantomjs dkdde/phantomjs-binaries:latest
Clone project and copy extracted phantomjs binary build archives into the given phantomjs directory. Mind appropriate version numbers of subdirectories.
$ git clone https://github.com/dkd/docker-dkdde-phantomjs-binaries.git
$ cd docker-dkdde-phantomjs-binaries
Build image, tag appropriately and push to Docker Hub:
$ docker build . --tag dkdde/phantomjs-binaries
$ docker push dkdde/phantomjs-binaries