File size: 981 Bytes
f78c865
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# استخدام نسخة بايثون مستقرة جداً
FROM python:3.10-slim

# تثبيت مكتبات النظام الضرورية للصوت (بدون ملفات زايدة باش ما يثقلش السيرفر)
RUN apt-get update && apt-get install -y \
    ffmpeg \
    portaudio19-dev \
    git \
    gcc \
    python3-dev \
    && rm -rf /var/lib/apt/lists/*

# تجهيز مجلد العمل
WORKDIR /app

# تحميل المحرك
RUN git clone https://github.com/IAHispano/Applio .

# تثبيت المكتبات بالترتيب وبدون مشاكل
RUN pip install --no-cache-dir --upgrade pip
RUN pip install --no-cache-dir matplotlib regex tokenizers
RUN pip install --no-cache-dir -r requirements.txt
RUN pip install --no-cache-dir torchfcpe resampy pypresence

# إخبار Hugging Face إننا بنخدموا على بورت 7860
ENV GRADIO_SERVER_NAME="0.0.0.0"
ENV GRADIO_SERVER_PORT=7860

# تشغيل الأداة مباشرة
CMD ["python", "app.py"]