Riy777 commited on
Commit
d9c73d9
·
verified ·
1 Parent(s): fc5c7ba

Create Dockerfile

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