ABO3MR commited on
Commit
d0888cd
·
verified ·
1 Parent(s): 44f45b4

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +18 -0
Dockerfile CHANGED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10
2
+
3
+ # إعداد المستخدم والصلاحيات عشان Hugging Face
4
+ RUN useradd -m -u 1000 user
5
+ USER user
6
+ ENV PATH="/home/user/.local/bin:$PATH"
7
+
8
+ WORKDIR /app
9
+
10
+ # نسخ وتسطيب المكتبات
11
+ COPY --chown=user ./requirements.txt requirements.txt
12
+ RUN pip install --no-cache-dir --upgrade -r requirements.txt
13
+
14
+ # نسخ كود البوت
15
+ COPY --chown=user . /app
16
+
17
+ # تشغيل البوت
18
+ CMD ["python", "main.py"]