Skip to content

Instantly share code, notes, and snippets.

@soarez
Created January 8, 2015 17:17
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save soarez/1220e67f297c6e797c3b to your computer and use it in GitHub Desktop.
Save soarez/1220e67f297c6e797c3b to your computer and use it in GitHub Desktop.
phantomjs dockerfile
FROM ubuntu:14.04
MAINTAINER blueoffice
ENV PHANTOMJS_BINARY https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.8-linux-x86_64.tar.bz2
RUN apt-get update && \
apt-get install -y wget libfontconfig && \
wget $PHANTOMJS_BINARY -O phantomjs.tar.bz2 && \
tar xf phantomjs.tar.bz2 && \
rm phantomjs.tar.bz2 && \
mv phantomjs* phantomjs
EXPOSE 4444
CMD [ "/phantomjs/bin/phantomjs", "--webdriver=4444" ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment