FROM python:3.12-slim

# تثبيت المكتبات العربية الأساسية
RUN apt-get update && apt-get install -y \
    locales \
    && echo "ar_SA.UTF-8 UTF-8" > /etc/locale.gen \
    && locale-gen \
    && rm -rf /var/lib/apt/lists/*

ENV LANG=ar_SA.UTF-8
ENV LC_ALL=ar_SA.UTF-8

WORKDIR /app

COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

COPY . .

CMD ["python", "main.py"]
