Created
July 11, 2014 13:33
-
-
Save cameronmaske/6f9f985dabcd86e81499 to your computer and use it in GitHub Desktop.
PhantomJS + Python (For Selenium)
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 orchardup/python:2.7 | |
RUN apt-get update | |
RUN apt-get upgrade -y | |
RUN apt-get install -y libpng12-dev libsvga1-dev libjpeg8-dev libfreetype6-dev libjasper-dev fontconfig | |
# Install PhantomJS | |
RUN mkdir /opt/phantomjs-1.9.2 | |
RUN apt-get install -y wget | |
RUN wget -O /tmp/phantomjs-1.9.2.tar.gz https://phantomjs.googlecode.com/files/phantomjs-1.9.2-linux-x86_64.tar.bz2 | |
RUN tar jxf /tmp/phantomjs-1.9.2.tar.gz --strip-components=1 --no-same-owner -C /opt/phantomjs-1.9.2 | |
RUN ln -s /opt/phantomjs-1.9.2/bin/phantomjs /usr/bin/phantomjs | |
# Required for lxml + gunicorn | |
RUN apt-get update --fix-missing | |
RUN apt-get install -y libxml2-dev libxslt1-dev python-dev libevent-dev libpq-dev | |
# Install Ruby + Foreman | |
RUN apt-get install -y ruby | |
RUN gem install foreman -v 0.63.0 | |
WORKDIR /code/ | |
RUN pip install pip-tools | |
ADD requirements.txt /code/requirements.txt | |
RUN pip install -r /code/requirements.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment