-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
37 lines (30 loc) · 966 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
FROM ubuntu:22.04
RUN apt-get update && apt-get install -y --no-install-recommends \
sudo \
git \
curl \
apt-utils \
wget \
ca-certificates \
libexpat1-dev \
gnupg \
fonts-ipafont-gothic \
fonts-wqy-zenhei \
fonts-thai-tlwg \
fonts-kacst \
fonts-freefont-ttf \
libxss1 \
libxtst6
RUN curl -sL https://deb.nodesource.com/setup_20.x | sudo -E bash - \
&& apt install -y nodejs
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'
RUN apt-get update && apt-get install -y --no-install-recommends \
google-chrome-unstable \
&& rm -rf /var/lib/apt/lists/*
COPY ./src browser-ui-test-src
COPY ./package*.json ./
RUN npm install
ENTRYPOINT ["node", "./browser-ui-test-src/index.js"]
# to be able to pass arguments to index.js
CMD []