HerzaJ commited on
Commit
a1716d0
·
verified ·
1 Parent(s): 762d436

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +39 -0
Dockerfile ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM node:18-slim
2
+
3
+ RUN apt-get update && apt-get install -y \
4
+ wget \
5
+ ca-certificates \
6
+ fonts-liberation \
7
+ libasound2 \
8
+ libatk-bridge2.0-0 \
9
+ libatk1.0-0 \
10
+ libatspi2.0-0 \
11
+ libcups2 \
12
+ libdbus-1-3 \
13
+ libdrm2 \
14
+ libgbm1 \
15
+ libgtk-3-0 \
16
+ libnspr4 \
17
+ libnss3 \
18
+ libwayland-client0 \
19
+ libxcomposite1 \
20
+ libxdamage1 \
21
+ libxfixes3 \
22
+ libxkbcommon0 \
23
+ libxrandr2 \
24
+ xdg-utils \
25
+ && rm -rf /var/lib/apt/lists/*
26
+
27
+ WORKDIR /app
28
+
29
+ COPY package*.json ./
30
+
31
+ RUN npm install
32
+
33
+ RUN npx playwright install chromium
34
+
35
+ COPY . .
36
+
37
+ EXPOSE 7860
38
+
39
+ CMD ["node", "server.js"]