add phantom to base image
authorSam <sam.saffron@gmail.com>
Fri, 27 Jun 2014 04:14:22 +0000 (14:14 +1000)
committerSam <sam.saffron@gmail.com>
Fri, 27 Jun 2014 04:14:22 +0000 (14:14 +1000)
image/discourse/Dockerfile

index 6aba6fb6ccb0331c5cc817abcf95fe2a23bd35da..7a34e8af22987d644468f75fe0c56a377d6fa02f 100644 (file)
@@ -13,6 +13,11 @@ RUN useradd discourse -s /bin/bash -m -U &&\
     cd /var/www/discourse/vendor/bundle &&\
        find . -name tmp -type d | xargs rm -rf && cd /
 
+RUN wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.7-linux-x86_64.tar.bz2 &&\
+      tar -xjf phantomjs-1.9.7-linux-x86_64.tar.bz2 &&\
+      rm phantomjs-1.9.7-linux-x86_64.tar.bz2 &&\
+      cp phantomjs-1.9.7-linux-x86_64/bin/phantomjs /bin/phantomjs &&\
+      rm -fr phantomjs-1.9.7-linux-x86_64
 
 # For a smaller but less flexible image:
 #RUN apt-get -y autoremove build-essential gcc gcc-4.7 .+-dev