forked from weihanwang/webdriver-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (22 loc) · 652 Bytes
/
Copy pathDockerfile
File metadata and controls
30 lines (22 loc) · 652 Bytes
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
FROM python:3.5
MAINTAINER Weihan Wang
# Install Firefox
RUN \
curl 'https://download-installer.cdn.mozilla.net/pub/firefox/releases/35.0/linux-x86_64/en-US/firefox-35.0.tar.bz2' \
-o firefox.tar.bz2 &&\
bunzip2 firefox.tar.bz2 &&\
tar xf firefox.tar &&\
rm firefox.tar
RUN apt-get update && apt-get install -y \
# Headless browser support
xvfb \
# Needed to launch firefox
libasound2 \
libgtk2.0-0 \
libdbus-glib-1-2 \
libxcomposite1
RUN pip install pyyaml==3.11 requests==2.5.1 selenium==2.52.0
ENV PYTHONPATH /
ENTRYPOINT [ "/entrypoint.sh" ]
CMD [ "python", "-u", "/main.py" ]
COPY root /