maylinejix commited on
Commit
5b9009e
·
verified ·
1 Parent(s): ff58ade

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +20 -0
Dockerfile ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM mcr.microsoft.com/playwright:v1.40.0-jammy
2
+
3
+ WORKDIR /app
4
+
5
+ RUN apt-get update && apt-get install -y \
6
+ python3 \
7
+ make \
8
+ g++ \
9
+ && rm -rf /var/lib/apt/lists/*
10
+
11
+ COPY package*.json ./
12
+ RUN npm install
13
+
14
+ COPY . .
15
+
16
+ RUN npx playwright install chromium
17
+
18
+ EXPOSE 7860
19
+
20
+ CMD ["node", "index.js"]