-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
64 lines (58 loc) · 959 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
FROM debian
RUN apt update && apt install -y nodejs npm
# Install the below as they are needed by the chromium bundled with Puppeteer
RUN apt install -y \
libasound2 \
libatk-bridge2.0-0 \
libatk1.0-0 \
libatomic1 \
libatspi2.0-0 \
libc6 \
libcairo2 \
libcups2 \
libdbus-1-3 \
libdrm2 \
libevent-2.1-7 \
libexpat1 \
libflac8 \
libfontconfig1 \
libfreetype6 \
libgbm1 \
libgcc-s1 \
libglib2.0-0 \
libjpeg62-turbo \
libjsoncpp24 \
liblcms2-2 \
libminizip1 \
libnspr4 \
libnss3 \
libopenjp2-7 \
libopus0 \
libpango-1.0-0 \
libpng16-16 \
libpulse0 \
libre2-9 \
libsnappy1v5 \
libstdc++6 \
libwebp6 \
libwebpdemux2 \
libwebpmux3 \
libx11-6 \
libxcb1 \
libxcomposite1 \
libxdamage1 \
libxext6 \
libxfixes3 \
libxkbcommon0 \
libxml2 \
libxrandr2 \
libxslt1.1 \
libx11-xcb1 \
libxcb-dri3-0 \
libpangocairo-1.0-0 \
libgtk-3-0 \
zlib1g
ADD index.js .
ADD package.json .
RUN npm install
ENTRYPOINT ["npm", "test"]