File size: 619 Bytes
ef40432
 
11c4efd
ef40432
 
11c4efd
ef40432
11c4efd
ef40432
 
4e3bd74
ef40432
11c4efd
ef40432
 
11c4efd
 
ef40432
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Dockerfile (خفيف لِـ HF Spaces)
FROM python:3.11-slim

ENV PYTHONUNBUFFERED=1 \
    PIP_NO_CACHE_DIR=1

WORKDIR /app

# نزّل المتطلبات فقط
COPY requirements.txt .
COPY departments.json departments_info.json branches_summary.json branches_details.json Blog_summary.json Blog_posts_details.json offers.json home.json about_us.json /app/
RUN pip install --upgrade pip && pip install -r requirements.txt

# نزّل التطبيق بعد التثبيت عشان cache layer يفضل صغير
COPY main.py /app/main.py

EXPOSE 7860
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]