maylinejix commited on
Commit
b8148bd
·
verified ·
1 Parent(s): cfe32b0

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -6
Dockerfile CHANGED
@@ -1,10 +1,7 @@
1
  FROM node:20-slim
2
 
3
  RUN apt-get update && apt-get install -y \
4
- git \
5
  wget \
6
- curl \
7
- gnupg \
8
  ca-certificates \
9
  fonts-liberation \
10
  libasound2 \
@@ -27,7 +24,6 @@ RUN apt-get update && apt-get install -y \
27
  xdg-utils \
28
  libx11-xcb1 \
29
  libxcb1 \
30
- libxcomposite1 \
31
  libxcursor1 \
32
  libxi6 \
33
  libxtst6 \
@@ -36,11 +32,10 @@ RUN apt-get update && apt-get install -y \
36
  WORKDIR /app
37
 
38
  COPY package*.json ./
39
- COPY setup.js ./
40
 
41
  RUN npm install
42
 
43
- RUN node setup.js
44
 
45
  COPY . .
46
 
 
1
  FROM node:20-slim
2
 
3
  RUN apt-get update && apt-get install -y \
 
4
  wget \
 
 
5
  ca-certificates \
6
  fonts-liberation \
7
  libasound2 \
 
24
  xdg-utils \
25
  libx11-xcb1 \
26
  libxcb1 \
 
27
  libxcursor1 \
28
  libxi6 \
29
  libxtst6 \
 
32
  WORKDIR /app
33
 
34
  COPY package*.json ./
 
35
 
36
  RUN npm install
37
 
38
+ RUN npx playwright install chromium --with-deps
39
 
40
  COPY . .
41