bahi-bh commited on
Commit
d6a4e44
·
verified ·
1 Parent(s): e328044

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +23 -0
Dockerfile ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ WORKDIR /app
4
+
5
+ # تثبيت المتطلبات الأساسية
6
+ RUN apt-get update && apt-get install -y \
7
+ gcc \
8
+ && rm -rf /var/lib/apt/lists/*
9
+
10
+ # نسخ الملفات
11
+ COPY requirements.txt .
12
+ RUN pip install --no-cache-dir -r requirements.txt
13
+
14
+ COPY . .
15
+
16
+ # إنشاء مجلد للكوكيز
17
+ RUN mkdir -p /app/data
18
+
19
+ # المنفذ
20
+ EXPOSE 7860
21
+
22
+ # تشغيل التطبيق
23
+ CMD ["python", "app.py"]