Skip to content

Commit

Permalink
updated Dockerfile:
Browse files Browse the repository at this point in the history
* switch to latest Ubuntu LTS;
* install adblockparser, re2 and pyre2
  • Loading branch information
kmike committed Oct 6, 2014
1 parent 427220b commit 9296e53
Showing 1 changed file with 20 additions and 10 deletions.
30 changes: 20 additions & 10 deletions Dockerfile
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"]

0 comments on commit 9296e53

Please sign in to comment.