-
Notifications
You must be signed in to change notification settings - Fork 80
/
Dockerfile
26 lines (26 loc) · 1.13 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
FROM node:6.9.4-slim
MAINTAINER [email protected]
WORKDIR /tmp
COPY webdriver-versions.js ./
ENV CHROME_PACKAGE="google-chrome-stable_59.0.3071.115-1_amd64.deb" NODE_PATH=/usr/local/lib/node_modules:/protractor/node_modules
RUN npm install -g [email protected] [email protected] && \
node ./webdriver-versions.js --chromedriver 2.32 && \
webdriver-manager update && \
echo "deb http://ftp.debian.org/debian jessie-backports main" >> /etc/apt/sources.list && \
apt-get update && \
apt-get install -y xvfb wget sudo && \
apt-get install -y -t jessie-backports openjdk-8-jre && \
wget https://github.com/webnicer/chrome-downloads/raw/master/x64.deb/${CHROME_PACKAGE} && \
dpkg --unpack ${CHROME_PACKAGE} && \
apt-get install -f -y && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* \
rm ${CHROME_PACKAGE} && \
mkdir /protractor
COPY protractor.sh /
COPY environment /etc/sudoers.d/
# Fix for the issue with Selenium, as described here:
# https://github.com/SeleniumHQ/docker-selenium/issues/87
ENV DBUS_SESSION_BUS_ADDRESS=/dev/null SCREEN_RES=1280x1024x24
WORKDIR /protractor
ENTRYPOINT ["/protractor.sh"]