abdelati88 commited on
Commit
6abea05
·
verified ·
1 Parent(s): b7728f8

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +24 -0
Dockerfile ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # بنستخدم نسخة بايثون حديثة
2
+ FROM python:3.10
3
+
4
+ # تجهيز مكان الشغل
5
+ WORKDIR /code
6
+
7
+ # 1. تحديث النظام وتسطيب أدوات الصوت (FFmpeg)
8
+ RUN apt-get update && apt-get install -y ffmpeg cmake git && rm -rf /var/lib/apt/lists/*
9
+
10
+ # 2. تحديث الـ pip (دي الخطوة اللي هتحل مشكلة الـ Build Error)
11
+ RUN pip install --no-cache-dir --upgrade pip setuptools wheel
12
+
13
+ # 3. تسطيب مكتبة Pytorch (نسخة الـ CPU الخفيفة عشان المساحة)
14
+ RUN pip install --no-cache-dir torch torchaudio --index-url https://download.pytorch.org/whl/cpu
15
+
16
+ # 4. تسطيب Chatterbox من المصدر الرسمي (الرابط الصحيح)
17
+ RUN pip install --no-cache-dir git+https://github.com/resemble-ai/chatterbox.git
18
+
19
+ # 5. تسطيب باقي المكتبات
20
+ RUN pip install --no-cache-dir gradio numpy
21
+
22
+ # 6. نسخ ملف الكود وتشغيله
23
+ COPY . .
24
+ CMD ["python", "app.py"]