lljz66 commited on
Commit
77c1fbb
·
verified ·
1 Parent(s): f809a04

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +26 -0
Dockerfile ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM node:20-slim
2
+
3
+ # تثبيت اعتماديات Chromium
4
+ RUN apt-get update && apt-get install -y \
5
+ wget gnupg ca-certificates fonts-liberation \
6
+ libasound2 libatk-bridge2.0-0 libatk1.0-0 libcups2 \
7
+ libdbus-1-3 libdrm2 libgbm1 libgtk-3-0 libnspr4 libnss3 \
8
+ libx11-xcb1 libxcomposite1 libxdamage1 libxfixes3 \
9
+ libxkbcommon0 libxrandr2 xdg-utils \
10
+ --no-install-recommends && rm -rf /var/lib/apt/lists/*
11
+
12
+ WORKDIR /app
13
+
14
+ COPY package*.json ./
15
+ RUN npm ci
16
+
17
+ # تثبيت Playwright ومتصفح Chromium
18
+ RUN npx playwright install chromium
19
+ RUN npx playwright install-deps
20
+
21
+ COPY . .
22
+
23
+ ENV PORT=7860
24
+ EXPOSE 7860
25
+
26
+ CMD ["node", "server.js"]