mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-03-03 14:52:11 +02:00
update phantomjs
This commit is contained in:
parent
1e9725ebec
commit
7312204080
@ -3,7 +3,7 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
FROM ubuntu:14.04
|
FROM ubuntu:14.04
|
||||||
MAINTAINER kev <noreply@easypi.info>
|
MAINTAINER EasyPi Software Foundation
|
||||||
|
|
||||||
ENV PHANTOMJS_VERSION 2.1.1
|
ENV PHANTOMJS_VERSION 2.1.1
|
||||||
|
|
||||||
@ -29,11 +29,11 @@ RUN set -xe \
|
|||||||
ruby \
|
ruby \
|
||||||
&& git clone git://github.com/ariya/phantomjs.git \
|
&& git clone git://github.com/ariya/phantomjs.git \
|
||||||
&& cd phantomjs \
|
&& cd phantomjs \
|
||||||
&& git checkout PHANTOMJS_VERSION \
|
&& git checkout $PHANTOMJS_VERSION \
|
||||||
&& git submodule init \
|
&& git submodule init \
|
||||||
&& git submodule update \
|
&& git submodule update \
|
||||||
&& sed -i '/platform:/s@^@//@' src/ghostdriver/hub_register.js \
|
&& 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/ \
|
&& install -v -s -m 755 bin/phantomjs /usr/local/bin/ \
|
||||||
&& cd .. \
|
&& cd .. \
|
||||||
&& rm -rf phantomjs \
|
&& rm -rf phantomjs \
|
||||||
@ -54,4 +54,4 @@ RUN set -xe \
|
|||||||
ruby \
|
ruby \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
CMD ["/usr/local/bin/phantomjs"]
|
CMD ["phantomjs"]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user