Spaces:
Build error
Build error
Create Dockerfile
Browse files- Dockerfile +23 -0
Dockerfile
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM python:3.10
|
2 |
+
|
3 |
+
# تثبيت المتطلبات الأساسية
|
4 |
+
RUN apt-get update && apt-get install -y \
|
5 |
+
ffmpeg \
|
6 |
+
git \
|
7 |
+
libsm6 \
|
8 |
+
libxext6 \
|
9 |
+
cmake \
|
10 |
+
rsync \
|
11 |
+
libgl1-mesa-glx \
|
12 |
+
&& rm -rf /var/lib/apt/lists/*
|
13 |
+
|
14 |
+
# تثبيت مكتبات Python
|
15 |
+
COPY requirements.txt .
|
16 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
17 |
+
|
18 |
+
# نسخ ملفات التطبيق
|
19 |
+
COPY . /app
|
20 |
+
WORKDIR /app
|
21 |
+
|
22 |
+
# تشغيل التطبيق
|
23 |
+
CMD ["python", "app.py"]
|