-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
20 lines (14 loc) · 658 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM node:10-slim
LABEL maintainer="David Boyne <boyney123@>"
WORKDIR /usr/src/performance-budgets
# Install latest chrome dev package.
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
&& sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' \
&& apt-get update \
&& apt-get install -y google-chrome-unstable --no-install-recommends \
&& rm -rf /var/lib/apt/lists/* \
&& rm -rf /src/*.deb
COPY src /usr/src/performance-budgets/src
COPY package.json /usr/src/performance-budgets
RUN npm install
ENTRYPOINT [ "npm", "start" ]