a-ragab-h-m commited on
Commit
f35517e
·
verified ·
1 Parent(s): 00ced88

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -10
Dockerfile CHANGED
@@ -1,20 +1,15 @@
1
  FROM pytorch/pytorch:2.1.0-cuda12.1-cudnn8-runtime
2
 
3
- # تعيين مجلد العمل
4
  WORKDIR /code
5
 
6
- # نسخ جميع ملفات المشروع
7
  COPY . /code
8
 
9
- # إعداد مجلد الكتابة المسموح به في Hugging Face (عادة /data)
10
- RUN mkdir -p /results && chmod -R 777 /results
11
-
12
- RUN chmod -R 777 /results
13
-
14
  # تثبيت المتطلبات
15
  RUN pip install --upgrade pip && \
16
- pip install -r requirements.txt
 
17
 
18
- # الأمر التنفيذي عند بدء الحاوية
19
  CMD ["python", "app.py"]
20
-
 
1
  FROM pytorch/pytorch:2.1.0-cuda12.1-cudnn8-runtime
2
 
3
+ # تعيين مجلد العمل داخل الحاوية
4
  WORKDIR /code
5
 
6
+ # نسخ ملفات المشروع
7
  COPY . /code
8
 
 
 
 
 
 
9
  # تثبيت المتطلبات
10
  RUN pip install --upgrade pip && \
11
+ pip install -r requirements.txt && \
12
+ pip install gradio
13
 
14
+ # تعيين نقطة التشغيل لتشغيل التطبيق
15
  CMD ["python", "app.py"]