Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

install phantomjs Alpine Linux

ENV PHANTOMJS_VERSION 2.1.1

RUN apk add --update --no-cache curl && 
curl -Ls "https://github.com/dustinblackman/phantomized/releases/download/${PHANTOMJS_VERSION}/dockerized-phantomjs.tar.gz" | tar xz -C / && 
curl -k -Ls https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-${PHANTOMJS_VERSION}-linux-x86_64.tar.bz2 | tar -jxvf - -C / && 
cp phantomjs-${PHANTOMJS_VERSION}-linux-x86_64/bin/phantomjs /usr/local/bin/phantomjs && 
rm -fR phantomjs-${PHANTOMJS_VERSION}-linux-x86_64 && 
apk del curl
Source by gist.github.com #
 
PREVIOUS NEXT
Tagged: #install #phantomjs #Alpine #Linux
ADD COMMENT
Topic
Name
4+7 =