docker-phantomjs2 icon indicating copy to clipboard operation
docker-phantomjs2 copied to clipboard

Minimum Viable Docker Image for PhantomJS 2.0

Minimum Viable Docker Image for PhantomJS 2.0

The smallest PhantomJS 2.0 image (<120mb) you'll find on Docker Hub.

:warning: This is an experiment. Some initial testing showed me that some examples provided by the PhantomJS project itself are working fine but it doesn't mean it will work for all use cases :warning:

Usage

docker run -ti --rm fgrehm/phantomjs2 --help

Build it locally

git clone https://github.com/fgrehm/docker-phantomjs2 && cd docker-phantomjs2
make build.local

Acknowledgements

  • https://github.com/rosenhouse/phantomjs2 for providing a precompiled phantomjs 2.0 binary
  • http://blog.oddbit.com/2015/02/05/creating-minimal-docker-images/ for inspiration on keeping images as small as possible
  • https://github.com/larsks/dockerize for making this so easy