1ENV PHANTOMJS_VERSION 2.1.1
2
3RUN apk add --update --no-cache curl &&
4curl -Ls "https://github.com/dustinblackman/phantomized/releases/download/${PHANTOMJS_VERSION}/dockerized-phantomjs.tar.gz" | tar xz -C / && \
5curl -k -Ls https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-${PHANTOMJS_VERSION}-linux-x86_64.tar.bz2 | tar -jxvf - -C / &&
6cp phantomjs-${PHANTOMJS_VERSION}-linux-x86_64/bin/phantomjs /usr/local/bin/phantomjs &&
7rm -fR phantomjs-${PHANTOMJS_VERSION}-linux-x86_64 &&
8apk del curl