forked from scrapinghub/splash
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
27 lines (22 loc) · 873 Bytes
/
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
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
# 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-twisted python-qt4 libre2-dev \
git-core python-pip
RUN pip install \
qt4reactor==1.6 \
psutil==2.1.3 \
adblockparser==0.3 \
git+https://github.com/axiak/pyre2.git@382bb743f16722b582cc2bac8fc08ff121dec20e#egg=re2 \
xvfbwrapper==0.2.4
ADD . /app
RUN pip install /app
EXPOSE 8050 8051 5023
CMD ["/app/bin/splash"]