forked from jciolek/docker-protractor-headless
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
32 lines (26 loc) · 937 Bytes
/
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
FROM ubuntu:16.04
MAINTAINER [email protected]
WORKDIR /tmp
RUN apt-get update
RUN apt-get install -y curl apt-utils xvfb wget default-jre vim git
RUN curl -sL https://deb.nodesource.com/setup_7.x | bash -
RUN apt-get install -y --allow-unauthenticated nodejs
RUN apt-get install -y build-essential
RUN npm install -g protractor bower mocha jasmine n
RUN n 6.3.1
RUN webdriver-manager update
## Install chrome
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
RUN sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
RUN apt-get update
RUN apt-get install -y google-chrome-stable
## Clean up
RUN apt-get clean
ADD addUser.sh /addUser.sh
ADD protractor.sh /protractor.sh
ADD runtests.sh /runtests.sh
RUN /addUser.sh
RUN mkdir /protractor
ENV SCREEN_RES=1280x1024x24
WORKDIR /protractor
ENTRYPOINT ["/runtests.sh"]