Last active
November 14, 2016 12:55
-
-
Save miked0004/b4aa62b62afbb16c67528f7b5f520041 to your computer and use it in GitHub Desktop.
Docker phantomjs ruby test box
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From ruby:2.3.1 | |
RUN apt-get update | |
RUN apt-get install build-essential chrpath libssl-dev libxft-dev -y \ | |
&& apt-get install libfreetype6 libfreetype6-dev -y \ | |
&& apt-get install libfontconfig1 libfontconfig1-dev -y | |
RUN set -xeu \ | |
\ | |
&& PHANTOM_VERSION="phantomjs-2.1.1" \ | |
&& ARCH=$(uname -m) \ | |
&& PHANTOM_JS="$PHANTOM_VERSION-linux-$ARCH" \ | |
&& wget https://bitbucket.org/ariya/phantomjs/downloads/$PHANTOM_JS.tar.bz2 \ | |
&& tar xvjf $PHANTOM_JS.tar.bz2 \ | |
&& mv $PHANTOM_JS /usr/local/share \ | |
&& ln -sf /usr/local/share/$PHANTOM_JS/bin/phantomjs /usr/local/bin \ | |
&& rm -f $PHANTOM_JS.tar.bz2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
docker-compose.yml