hadheedo commited on
Commit
1d7fee3
·
verified ·
1 Parent(s): 0e43c2e

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -0
Dockerfile CHANGED
@@ -2,10 +2,18 @@ FROM python:3.10-slim
2
 
3
  WORKDIR /app
4
 
 
5
  COPY requirements.txt .
6
  RUN pip install --no-cache-dir -r requirements.txt
7
 
 
 
 
 
 
8
  COPY . .
9
 
10
  EXPOSE 7860
 
11
  CMD ["python", "main.py"]
 
 
2
 
3
  WORKDIR /app
4
 
5
+ # ننسخ المتطلبات ونثبتها
6
  COPY requirements.txt .
7
  RUN pip install --no-cache-dir -r requirements.txt
8
 
9
+ # إنشاء مجلد الكاش وإعطائه صلاحيات مناسبة
10
+ RUN mkdir -p /tmp/huggingface_cache && chmod -R 777 /tmp/huggingface_cache
11
+ RUN mkdir -p /tmp/huggingface && chmod -R 777 /tmp/huggingface
12
+
13
+ # ننسخ بقية الملفات
14
  COPY . .
15
 
16
  EXPOSE 7860
17
+
18
  CMD ["python", "main.py"]
19
+