Skip to content

Commit 37cdcb0

Browse files
feat(ci): create a dockerfile for running uirouter ci
1 parent e06f20a commit 37cdcb0

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

docker/Dockerfile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
FROM node:10
2+
3+
# install google-chrome-stable
4+
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
5+
&& echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list \
6+
&& apt-get update -qqy \
7+
&& apt-get -qqy install \
8+
${CHROME_VERSION:-google-chrome-stable} \
9+
&& rm /etc/apt/sources.list.d/google-chrome.list \
10+
&& rm -rf /var/lib/apt/lists/* /var/cache/apt/*
11+
12+
# Avoid script node binary mismatch output
13+
# https://github.com/nodenv/nodenv/issues/108
14+
RUN npm config set scripts-prepend-node-path auto
15+
16+
# Use version of yarn (as of Dockerfile build)
17+
RUN npm install -g yarn
18+
19+
RUN git config --global user.email "uirouter@github.actions"
20+
RUN git config --global user.name "uirouter github actions"

0 commit comments

Comments
 (0)