Created
September 18, 2015 08:38
-
-
Save superhero/d9aed5755e488e5a24ee to your computer and use it in GitHub Desktop.
PhantomJS docker file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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