-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (28 loc) · 1003 Bytes
/
Copy pathDockerfile
File metadata and controls
36 lines (28 loc) · 1003 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
31
32
33
34
35
36
FROM python:3.6
MAINTAINER Mesut Güneş <gunesmes@gmail.com>
# Set timezone
RUN echo "US/Eastern" > /etc/timezone && dpkg-reconfigure --frontend noninteractive tzdata
RUN apt-get update -y && \
apt-get install -y unzip xvfb \
qt5-default libqt5webkit5-dev \
gstreamer1.0-plugins-base \
gstreamer1.0-tools gstreamer1.0-x \
freetds-dev \
libnss3 libxi6 libgconf-2-4 \
xvfb
# install chrome
RUN apt-get update -y && \
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb && \
dpkg -i google-chrome-stable_current_amd64.deb; apt-get -fy install
# install chromedriver and place it ib path
RUN wget https://chromedriver.storage.googleapis.com/2.42/chromedriver_linux64.zip && \
unzip chromedriver_linux64.zip && \
mv chromedriver /usr/local/bin/
# install Python packages
RUN pip3 install selenium
RUN pip3 install behave
RUN pip3 install allure-behave
RUN pip3 install pyquery
# create seperate folder for project
RUN mkdir /project
WORKDIR /project