uniq_ui / Dockerfile
salmafahmy's picture
Update Dockerfile
04b9c00 verified
Raw History Blame Contribute Delete
751 Bytes
FROM python:3.11-slim
WORKDIR /app
# تثبيت الأدوات الأساسية فقط
RUN apt-get update && apt-get install -y \
build-essential \
curl \
&& rm -rf /var/lib/apt/lists/*
# 1. نسخ ملف المتطلبات
COPY requirements.txt .
# 2. تثبيت المكتبات
RUN pip3 install --no-cache-dir -r requirements.txt
# 3. نسخ كل الملفات (بما فيها app.py)
COPY . .
# 4. بورت Hugging Face الرسمي هو 7860 (مهم جداً)
EXPOSE 7860
# 5. تشغيل السيرفر (تأكدي أن اسم ملفك app.py)
# ملاحظة: شيلنا كلمة src/ لأن الملف موجود بره مباشرة
ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]