File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,16 +2,16 @@ FROM ubuntu:14.04
22
33EXPOSE 8910
44
5- ENV PHANTOM_JS_VERSION 1.9.7-linux-x86_64
5+ ENV PHANTOM_JS_VERSION 2.0.0
66
77RUN apt-get update
8- RUN apt-get install -yqq curl libfreetype6 libfontconfig
9- # make ruby python git g++ flex bison gperf perl \
10- # libfontconfig1-dev libicu-dev libfreetype6 \
11- # libssl-dev libpng-dev libjpeg-dev
12- # RUN git clone git://github.com/ariya/phantomjs.git && cd phantomjs && ./build.sh && send "y\n"
8+ RUN apt-get install -yqq build-essential g++ flex bison gperf ruby perl \
9+ libsqlite3-dev libfontconfig1-dev libicu-dev libfreetype6 libssl-dev \
10+ libpng-dev libjpeg-dev python libx11-dev libxext-dev \
11+ curl
12+ RUN curl -sSL https://github.com/ariya/phantomjs/archive/$PHANTOM_JS_VERSION.tar.gz | tar xz
13+ RUN ln -sf phantomjs-$PHANTOM_JS_VERSION /phantomjs
14+ RUN cd /phantomjs && ./build.sh --confirm
1315
14- RUN curl -sSL https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-$PHANTOM_JS_VERSION.tar.bz2 | tar xjC /
15- RUN ln -s phantomjs-$PHANTOM_JS_VERSION /phantomjs
1616
1717CMD ["/phantomjs/bin/phantomjs", "--webdriver=8910"]
You can’t perform that action at this time.
0 commit comments