Skip to content

Commit 21fd14f

Browse files
author
Arnob Saha
committed
Add dockerfile for angular testing
1 parent 997c699 commit 21fd14f

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

Dockerfile

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# This container runs node
2+
FROM node:latest
3+
MAINTAINER You
4+
5+
# Installing google browser from (https://www.google.com/linuxrepositories/)
6+
RUN wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | apt-key add -
7+
RUN echo 'deb http://dl.google.com/linux/chrome/deb/ stable main' >> /etc/apt/sources.list
8+
9+
RUN apt-get update
10+
RUN apt-get install -y --no-install-recommends \
11+
google-chrome-stable \
12+
npm nodejs nodejs-legacy \
13+
build-essential chrpath libssl-dev libxft-dev \
14+
libfreetype6 libfreetype6-dev \
15+
libfontconfig1 libfontconfig1-dev \
16+
libexif12 \
17+
default-jre \
18+
imagemagick \
19+
xvfb git && \
20+
apt-get autoremove -y --purge \
21+
&& apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
22+
23+
RUN npm install --global npm@latest
24+
25+
RUN npm install -g inherits \
26+
&& npm install -g \
27+
yo \
28+
bower \
29+
yarn \
30+
mocha \
31+
chai \
32+
grunt-cli \
33+
jasmine-node \
34+
35+
karma \
36+
karma-chrome-launcher \
37+
karma-firefox-launcher \
38+
karma-jasmine \
39+
karma-junit-reporter \
40+
karma-ng-scenario \
41+
protractor \
42+
&& rm -rf /root/.npm/
43+
44+
RUN google-chrome --version
45+
46+
RUN webdriver-manager update
47+
48+
ENV NODE_PATH /usr/lib/nodejs/:/usr/local/lib/node_modules/
49+
ENV CHROME_BIN /usr/bin/google-chrome

0 commit comments

Comments
 (0)