omar0scarf commited on
Commit
61d54a8
·
verified ·
1 Parent(s): f83ba12

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -7
Dockerfile CHANGED
@@ -1,6 +1,6 @@
1
  FROM node:lts-buster
2
 
3
- # تثبيت ا لمتطلبات الأساسية
4
  RUN apt-get update && \
5
  apt-get install -y \
6
  git \
@@ -16,15 +16,13 @@ WORKDIR /app
16
  # استنساخ المشروع
17
  RUN git clone https://github.com/omarvip212/bot0.git .
18
 
19
- # الانتقال إلى المجلد الصحيح
20
- WORKDIR /app/bot0
21
-
22
- # نسخ ملف package.json
23
- COPY package.json ./
24
-
25
  # تثبيت الاعتماديات
 
26
  RUN npm install --force
27
 
 
 
 
28
  # تعيين الصلاحيات
29
  RUN chmod -R 777 /app
30
 
 
1
  FROM node:lts-buster
2
 
3
+ # تثبيت المتطلبات الأساسية
4
  RUN apt-get update && \
5
  apt-get install -y \
6
  git \
 
16
  # استنساخ المشروع
17
  RUN git clone https://github.com/omarvip212/bot0.git .
18
 
 
 
 
 
 
 
19
  # تثبيت الاعتماديات
20
+ COPY package*.json ./
21
  RUN npm install --force
22
 
23
+ # نسخ باقي الملفات
24
+ COPY . .
25
+
26
  # تعيين الصلاحيات
27
  RUN chmod -R 777 /app
28