Anoar2025 commited on
Commit
084e7fc
·
verified ·
1 Parent(s): 448ff17

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -8
Dockerfile CHANGED
@@ -1,17 +1,15 @@
1
- FROM python:3.9
2
 
3
- # تثبيت الأدوات الأساسية والنظام
4
- RUN apt-get update && apt-get install -y ffmpeg
5
 
6
- # إنشاء مجلد العمل
7
  WORKDIR /code
8
 
9
- # تثبيت المكتبات
10
  COPY ./requirements.txt /code/requirements.txt
11
- RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
 
12
 
13
- # نسخ الكود
14
  COPY . .
15
 
16
- # تشغيل السيرفر
17
  CMD ["python", "app.py"]
 
1
+ FROM python:3.10-slim
2
 
3
+ # تثبيت ffmpeg وتحديث شهادات الأمان
4
+ RUN apt-get update && apt-get install -y ffmpeg curl && rm -rf /var/lib/apt/lists/*
5
 
 
6
  WORKDIR /code
7
 
8
+ # تحديث pip وتثبيت المكتبات
9
  COPY ./requirements.txt /code/requirements.txt
10
+ RUN pip install --no-cache-dir --upgrade pip
11
+ RUN pip install --no-cache-dir -r /code/requirements.txt
12
 
 
13
  COPY . .
14
 
 
15
  CMD ["python", "app.py"]