Noor22Tak commited on
Commit
005c351
·
verified ·
1 Parent(s): 501e62f

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -12
Dockerfile CHANGED
@@ -1,23 +1,12 @@
1
- FROM huggingface/autotrain-advanced:latest
2
- CMD pip uninstall -y autotrain-advanced && pip install -U autotrain-advanced && autotrain app --host 0.0.0.0 --port 7860 --workers 1
3
-
4
-
5
  FROM python:3.10-slim
6
 
7
- # تثبيت الأدوات الأساسية
8
- RUN apt-get update && apt-get install -y git
9
-
10
- # تعيين مجلد العمل
11
  WORKDIR /app
12
 
13
- # نسخ الملفات
14
  COPY requirements.txt .
15
  RUN pip install --no-cache-dir -r requirements.txt
16
 
17
  COPY app.py .
18
 
19
- # منفذ التشغيل
20
- EXPOSE 7860
21
 
22
- # أمر التشغيل
23
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
 
 
 
 
1
  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 app.py .
9
 
10
+ ENV PORT=7860
 
11
 
 
12
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]