File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -57,9 +57,10 @@ RUN cd /usr/src/phantomjs \
5757 && apk del .build-deps \
5858 && rm -r /*.patch /usr/src
5959
60+ RUN apk add patchelf --update-cache --repository http://dl-3.alpinelinux.org/alpine/edge/testing/ --allow-untrusted
61+
6062# package binary build
6163RUN cd /root \
62- && apk add patchelf --update-cache --repository http://dl-3.alpinelinux.org/alpine/edge/testing/ --allow-untrusted \
6364 && mkdir -p phantomjs/lib \
6465 && cp /usr/bin/phantomjs phantomjs/ \
6566 && cd phantomjs \
@@ -68,7 +69,7 @@ RUN cd /root \
6869 | cut -d' ' -f2`; do \
6970 cp $lib lib/`basename $lib`; \
7071 done \
71- && patchelf --set-rpath lib phantomjs \
72+ && patchelf --set-rpath '$ORIGIN/ lib' phantomjs \
7273 && cd /root \
7374 && tar cvf phantomjs.tar phantomjs \
7475 && bzip2 -9 phantomjs.tar
Original file line number Diff line number Diff line change 1- NAME =artifacts/phantomjs-v2.11- alpine.tar.bz2
1+ NAME =artifacts/phantomjs-alpine-x86_64 .tar.bz2
22all : $(NAME )
33
44$(NAME ) :
55 docker build -t phantomjs-alpine . && docker run --rm -i -v ` pwd` /artifacts:/artifacts phantomjs-alpine:latest cp /root/phantomjs.tar.bz2 /$(NAME )
66
77
88clean :
9- rm phantomjs-v2.11-alpine.tar.bz2
9+ rm artifacts/ * 2> /dev/null || echo " clean "
1010
Original file line number Diff line number Diff line change 1+ # phantomjs on Alpine Linux x86_64
2+
3+ This repository uses docker to build a phantomjs docker images.
4+
5+ Also it can be used to get a binary release for phantomjs for Alpine Linux x86_64.
6+
7+ ## Building a binary release
8+
9+ ```
10+ make
11+ ```
12+
13+ The release will be saved to ` artifacts/phantomjs-alpine.tar.bz2 ` .
14+
You can’t perform that action at this time.
0 commit comments