Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@superhero
Created September 18, 2015 08:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save superhero/d9aed5755e488e5a24ee to your computer and use it in GitHub Desktop.
Save superhero/d9aed5755e488e5a24ee to your computer and use it in GitHub Desktop.
PhantomJS docker file
FROM ubuntu:14.04
ENV DEBIAN_FRONTEND noninteractive
RUN ln -snf /usr/share/zoneinfo/Europe/Madrid /etc/localtime && echo "Europe/Madrid" > /etc/timezone
RUN apt-get -y update && apt-get -y install \
build-essential g++ flex bison gperf ruby perl libsqlite3-dev libfontconfig1-dev libicu-dev \
libfreetype6 libssl-dev libpng-dev libjpeg-dev python libx11-dev libxext-dev git
RUN git clone git://github.com/ariya/phantomjs.git /tmp/phantomjs \
&& cd /tmp/phantomjs \
&& git checkout 2.0 \
&& ./build.sh --jobs 1 --confirm \
&& mv bin/phantomjs /usr/local/bin \
&& rm -rf /tmp/phantomjs
RUN apt-get autoremove -y \
&& apt-get clean all
ENTRYPOINT ["phantomjs"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment