forked from scrapinghub/splash
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
41 lines (33 loc) · 1.35 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
38
39
40
41
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 zlib1g-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 \
Pillow==2.7.0
ADD . /app
RUN pip install /app
VOLUME ["/etc/splash/proxy-profiles", "/etc/splash/js-profiles", "/etc/splash/filters", "/etc/splash/lua_modules"]
EXPOSE 8050 8051 5023
ENTRYPOINT [ \
"/app/bin/splash", \
"--proxy-profiles-path", "/etc/splash/proxy-profiles", \
"--js-profiles-path", "/etc/splash/js-profiles", \
"--filters-path", "/etc/splash/filters", \
"--lua-package-path", "/etc/splash/lua_modules/?.lua" \
]