-
-
Save tsyber1an/66f4557b8f1e4fa4b2f6 to your computer and use it in GitHub Desktop.
PhantomJS 2.0 Dockerfile
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
# | |
# Example Dockerfile that builds PhantomJS 2.0 | |
# | |
# Build with: | |
# docker build --rm --tag=phantom2.0:latest . | |
# | |
# Run with: | |
# docker run --name=phantom2.0 phantom2.0 | |
# | |
# Copy the executable to your host machine for distribution: | |
# docker cp phantom2.0:/usr/local/bin/phantomjs phantomjs | |
# | |
FROM ubuntu | |
ENV TERM=xterm-color | |
RUN apt-get update; \ | |
apt-get install -y \ | |
bison \ | |
build-essential \ | |
curl \ | |
flex \ | |
g++ \ | |
git \ | |
gperf \ | |
sqlite3 \ | |
libsqlite3-dev \ | |
fontconfig \ | |
libfontconfig1 \ | |
libfontconfig1-dev \ | |
libfreetype6 \ | |
libfreetype6-dev \ | |
libicu-dev \ | |
libjpeg-dev \ | |
libpng-dev \ | |
libssl-dev \ | |
libqt5webkit5-dev \ | |
ruby \ | |
perl \ | |
unzip \ | |
wget | |
RUN mkdir -p /usr/src; \ | |
cd /usr/src; \ | |
wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.0.0-source.zip; \ | |
unzip phantomjs-2.0.0-source.zip; \ | |
rm phantomjs-2.0.0-source.zip; \ | |
cd phantomjs-2.0.0; \ | |
./build.sh --confirm | |
RUN cp /usr/src/phantomjs-2.0.0/bin/phantomjs /usr/local/bin/phantomjs | |
CMD /bin/bash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment