-
Notifications
You must be signed in to change notification settings - Fork 29
/
Dockerfile
32 lines (26 loc) · 1.32 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
FROM ubuntu:16.04
MAINTAINER "Ipatios Asmanidis" <ypasmk@gmail.com>
LABEL name="Docker build for acceptance testing using the robot framework"
RUN apt-get update \
&& apt-get install -y build-essential libssl-dev libffi-dev python-dev \
python-pip python-dev gcc phantomjs firefox \
xvfb zip wget ca-certificates ntpdate \
libnss3-dev libxss1 libappindicator3-1 libindicator7 gconf-service libgconf-2-4 libpango1.0-0 xdg-utils fonts-liberation \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install -r requirements.txt
RUN wget -q https://github.com/mozilla/geckodriver/releases/download/v0.24.0/geckodriver-v0.24.0-linux64.tar.gz \
&& tar xvzf geckodriver-*.tar.gz \
&& rm geckodriver-*.tar.gz \
&& mv geckodriver /usr/local/bin \
&& chmod a+x /usr/local/bin/geckodriver
# install chrome and chromedriver in one run command to clear build caches for new versions (both version need to match)
RUN wget -q https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb \
&& dpkg -i google-chrome*.deb \
&& rm google-chrome*.deb \
&& wget -q https://chromedriver.storage.googleapis.com/89.0.4389.23/chromedriver_linux64.zip \
&& unzip chromedriver_linux64.zip \
&& rm chromedriver_linux64.zip \
&& mv chromedriver /usr/local/bin \
&& chmod +x /usr/local/bin/chromedriver
CMD ["/scripts/run_suite.sh"]