-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDockerfile
37 lines (29 loc) · 1.12 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
FROM ubuntu:12.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 python-software-properties
# add a repo for libre2
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 \
xvfb libqt4-webkit python-qt4 libre2-dev \
git-core python-pip libicu48 liblua5.2-dev
RUN pip install -U pip
RUN pip install \
Twisted==14.0.2 \
qt4reactor==1.6 \
psutil==2.1.3 \
adblockparser==0.3 \
git+https://github.com/axiak/pyre2.git@382bb743f16722b582cc2bac8fc08ff121dec20e#egg=re2 \
xvfbwrapper==0.2.4 \
lupa==1.1 \
git+https://github.com/scrapinghub/splash.git#egg=Splash \
flask \
nose
RUN apt-get install -y libxml2-dev libxslt1-dev
RUN pip install requests lxml
ADD . /app
WORKDIR /app
ENTRYPOINT /app/run-tests.sh