The smallest PhantomJS 2.0 image (<120mb) you'll find on Docker Hub.
docker run -ti --rm fgrehm/phantomjs2 --help
git clone https://github.com/fgrehm/docker-phantomjs2 && cd docker-phantomjs2
make build.local
- 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