ans42 commited on
Commit
f78c865
·
verified ·
1 Parent(s): cdf555f

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +30 -0
Dockerfile ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # استخدام نسخة بايثون مستقرة جداً
2
+ FROM python:3.10-slim
3
+
4
+ # تثبيت مكتبات النظام الضرورية للصوت (بدون ملفات زايدة باش ما يثقلش السيرفر)
5
+ RUN apt-get update && apt-get install -y \
6
+ ffmpeg \
7
+ portaudio19-dev \
8
+ git \
9
+ gcc \
10
+ python3-dev \
11
+ && rm -rf /var/lib/apt/lists/*
12
+
13
+ # تجهيز مجلد العمل
14
+ WORKDIR /app
15
+
16
+ # تحميل المحرك
17
+ RUN git clone https://github.com/IAHispano/Applio .
18
+
19
+ # تثبيت المكتبات بالترتيب وبدون مشاكل
20
+ RUN pip install --no-cache-dir --upgrade pip
21
+ RUN pip install --no-cache-dir matplotlib regex tokenizers
22
+ RUN pip install --no-cache-dir -r requirements.txt
23
+ RUN pip install --no-cache-dir torchfcpe resampy pypresence
24
+
25
+ # إخبار Hugging Face إننا بنخدموا على بورت 7860
26
+ ENV GRADIO_SERVER_NAME="0.0.0.0"
27
+ ENV GRADIO_SERVER_PORT=7860
28
+
29
+ # تشغيل الأداة مباشرة
30
+ CMD ["python", "app.py"]