-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (32 loc) · 846 Bytes
/
Dockerfile
File metadata and controls
32 lines (32 loc) · 846 Bytes
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 node:10-slim
ENV APP_ROOT /src/app
RUN apt-get update -y && \
apt-get install ca-certificates \
gconf-service \
libasound2 \
libatk1.0-0 \
libatk1.0-0 \
libdbus-1-3 \
libgconf-2-4 \
libgtk-3-0 \
libnspr4 \
libnss3 \
libx11-xcb1 \
libxss1 \
libxtst6 \
fonts-liberation \
libappindicator3-1 \
xdg-utils \
lsb-release \
wget \
curl \
xz-utils -y --no-install-recommends && \
wget https://dl.google.com/linux/direct/google-chrome-unstable_current_amd64.deb && \
dpkg -i google-chrome*.deb && \
apt-get install -f && \
apt-get clean autoclean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* google-chrome-unstable_current_amd64.deb
WORKDIR $APP_ROOT
COPY package*.json ./
RUN npm install
COPY . $APP_ROOT