1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-27 09:18:43 +00:00

update phantomjs

This commit is contained in:
kev 2016-11-23 21:20:53 +08:00
parent 1e9725ebec
commit 7312204080

@ -3,7 +3,7 @@
#
FROM ubuntu:14.04
MAINTAINER kev <noreply@easypi.info>
MAINTAINER EasyPi Software Foundation
ENV PHANTOMJS_VERSION 2.1.1
@ -29,11 +29,11 @@ RUN set -xe \
ruby \
&& git clone git://github.com/ariya/phantomjs.git \
&& cd phantomjs \
&& git checkout PHANTOMJS_VERSION \
&& git checkout $PHANTOMJS_VERSION \
&& git submodule init \
&& git submodule update \
&& sed -i '/platform:/s@^@//@' src/ghostdriver/hub_register.js \
&& echo y | ./build.py 2>/dev/null 1>&2 \
&& echo y | ./build.py \
&& install -v -s -m 755 bin/phantomjs /usr/local/bin/ \
&& cd .. \
&& rm -rf phantomjs \
@ -54,4 +54,4 @@ RUN set -xe \
ruby \
&& rm -rf /var/lib/apt/lists/*
CMD ["/usr/local/bin/phantomjs"]
CMD ["phantomjs"]