forked from catchpoint/WebPageTest.agent
/
Dockerfile
61 lines (52 loc) · 1.27 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# FROM debian:jessie-slim
FROM ubuntu
RUN apt-get update && \
apt-get install -y \
wget \
curl \
python \
python-pip \
xvfb \
imagemagick \
python-dev \
zlib1g-dev \
libjpeg-dev \
psmisc \
dbus-x11 \
sudo \
kmod \
ffmpeg \
net-tools \
tcpdump \
traceroute \
bind9utils \
software-properties-common \
python-software-properties
RUN curl -sL https://deb.nodesource.com/setup_7.x | bash - && \
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && \
echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list
RUN add-apt-repository -y ppa:ubuntu-mozilla-daily/ppa
RUN apt-get update && \
apt-get install -y \
google-chrome-stable \
google-chrome-beta \
google-chrome-unstable \
firefox \
firefox-trunk \
nodejs
RUN npm install -g lighthouse
RUN pip install \
dnspython \
monotonic \
pillow \
psutil \
requests \
ujson \
xvfbwrapper \
marionette_driver
COPY wptagent.py /wptagent/wptagent.py
COPY internal /wptagent/internal
COPY ws4py /wptagent/ws4py
COPY docker/linux-headless/entrypoint.sh /wptagent/entrypoint.sh
WORKDIR /wptagent
CMD ["/bin/bash", "/wptagent/entrypoint.sh"]