forked from scrapinghub/splash
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* switch to latest Ubuntu LTS; * install adblockparser, re2 and pyre2
- Loading branch information
Showing
1 changed file
with
20 additions
and
10 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,24 @@ | ||
FROM ubuntu:precise | ||
ENV DEBIAN_FRONTEND noninteractive | ||
RUN sed 's/main$/main universe/' -i /etc/apt/sources.list && \ | ||
apt-get update -q && \ | ||
FROM ubuntu:14.04 | ||
ENV DEBIAN_FRONTEND noninteractive | ||
|
||
# software-properties-common contains "add-apt-repository" command for PPA conf | ||
RUN apt-get update && apt-get install -y software-properties-common | ||
|
||
RUN add-apt-repository -y ppa:pi-rho/security | ||
RUN sed 's/main$/main universe/' -i /etc/apt/sources.list && \ | ||
apt-get update -q && \ | ||
apt-get install -y netbase ca-certificates python \ | ||
python-dev build-essential libicu48 \ | ||
xvfb libqt4-webkit python-twisted python-qt4 | ||
ADD https://raw.github.com/pypa/pip/master/contrib/get-pip.py /get-pip.py | ||
RUN python /get-pip.py | ||
python-dev build-essential \ | ||
xvfb libqt4-webkit python-twisted python-qt4 libre2-dev \ | ||
git-core | ||
|
||
ADD https://raw.github.com/pypa/pip/master/contrib/get-pip.py /get-pip.py | ||
RUN python /get-pip.py | ||
ADD . /app | ||
RUN pip install qt4reactor psutil raven supervisor supervisor-stdout | ||
RUN pip install qt4reactor psutil raven \ | ||
supervisor supervisor-stdout \ | ||
adblockparser \ | ||
git+https://github.com/axiak/pyre2.git@382bb743f16722b582cc2bac8fc08ff121dec20e#egg=re2 | ||
RUN pip install /app | ||
EXPOSE 8050 8051 5023 | ||
CMD ["/usr/local/bin/supervisord", "-c", "/app/supervisord.conf"] | ||
CMD ["/usr/local/bin/supervisord", "-c", "/app/supervisord.conf"] |