mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-12-12 11:15:04 +02:00
update phantomjs
This commit is contained in:
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"]
|
||||
|
Loading…
Reference in New Issue
Block a user