omar0scarf commited on
Commit
ae99f82
·
verified ·
1 Parent(s): 99af1b4

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +14 -11
Dockerfile CHANGED
@@ -1,5 +1,6 @@
1
  FROM node:lts-buster
2
- # Install required packages
 
3
  RUN apt-get update && \
4
  apt-get install -y \
5
  git \
@@ -9,19 +10,21 @@ RUN apt-get update && \
9
  apt-get upgrade -y && \
10
  rm -rf /var/lib/apt/lists/*
11
 
12
- # Set the working directory
13
  WORKDIR /app
14
 
15
- # Clone the r pository
16
  RUN git clone https://github.com/omarvip212/bot0.git
17
 
18
- # Set the working directory to the cloned repository
19
- WORKDIR /app/silana-lite-ofc
 
 
 
 
20
 
21
- # Grant permissions, clear cache, and install dependencies
22
- RUN chmod -R 777 /app && \
23
- npm cache clean --force && \
24
- npm install --force
25
 
26
- # Start the application
27
- CMD ["npm", "start"]
 
1
  FROM node:lts-buster
2
+
3
+ # تثبيت المتطلبات الأساسية
4
  RUN apt-get update && \
5
  apt-get install -y \
6
  git \
 
10
  apt-get upgrade -y && \
11
  rm -rf /var/lib/apt/lists/*
12
 
13
+ # إنشاء مجلد العمل
14
  WORKDIR /app
15
 
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
 
29
+ # تشغيل البوت
30
+ CMD ["node", "index.js"]