-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathjseval.dockerfile
71 lines (58 loc) · 1.34 KB
/
jseval.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
65
66
67
68
69
70
71
FROM node:15.14-buster
#
# playwright dependencies
#
RUN apt-get update && apt-get install -y --no-install-recommends \
libwoff1 \
libopus0 \
libwebp6 \
libwebpdemux2 \
libenchant1c2a \
libgudev-1.0-0 \
libsecret-1-0 \
libhyphen0 \
libgdk-pixbuf2.0-0 \
libegl1 \
libnotify4 \
libxslt1.1 \
libevent-2.1-6 \
libgles2 \
libvpx5 \
libxcomposite1 \
libatk1.0-0 \
libatk-bridge2.0-0 \
libepoxy0 \
libgtk-3-0 \
libharfbuzz-icu0
RUN apt-get update && apt-get install -y --no-install-recommends \
libgstreamer-gl1.0-0 \
libgstreamer-plugins-bad1.0-0 \
gstreamer1.0-plugins-good \
gstreamer1.0-libav
RUN apt-get update && apt-get install -y --no-install-recommends \
libnss3 \
libxss1 \
libasound2 \
fonts-noto-color-emoji \
libxtst6
RUN apt-get update && apt-get install -y --no-install-recommends \
libdbus-glib-1-2 \
libxt6
RUN apt-get update && apt-get install -y --no-install-recommends \
ffmpeg
RUN apt-get update && apt-get install -y --no-install-recommends \
xvfb
RUN mkdir -p /share
ENV PLAYWRIGHT_BROWSERS_PATH /share
WORKDIR $PLAYWRIGHT_BROWSERS_PATH
#
# install node packages
#
COPY package.json ./
RUN npm install
ENV PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD true
#
# run
#
COPY jseval.js ./
ENTRYPOINT [ "node", "./jseval.js" ]