forked from shootermv/angular-cli-for-e2e
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
29 lines (20 loc) · 982 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
FROM debian:jessie
MAINTAINER Vitaly Iegorov <[email protected]>
ENV DEBIAN_FRONTEND noninteractive
# Set debian non interactive mode
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections && export DEBIAN_FRONTEND="noninteractive"
# Install basic dependencies
RUN apt-get update && apt-get install -y curl xvfb git gconf2 apt-utils ssh
# Add Google Chrome
RUN curl -O -k https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add linux_signing_key.pub
RUN sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
# Add NodeJS
RUN curl -sL https://deb.nodesource.com/setup_7.x | bash -
# Install Chrome, NodeJS
RUN apt-get install -y google-chrome-stable nodejs
# Install JS dependencies
RUN npm install -g @angular/cli
# Set virtual display
RUN export DISPLAY=:1 && Xvfb $DISPLAY -ac -screen 0 1280x1024x8 &
RUN xvfb-run webdriver-manager start &
WORKDIR /usr/src/app