FROM python:3.10-slim # تحديث النظام وتثبيت المتطلبات الأساسية RUN apt-get update && apt-get install -y \ ffmpeg \ curl \ gnupg \ && rm -rf /var/lib/apt/lists/* # تثبيت Node.js لضمان عمل الأدوات المساعدة RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - \ && apt-get install -y nodejs \ && rm -rf /var/lib/apt/lists/* RUN useradd -m -u 1000 user USER user ENV PATH="/home/user/.local/bin:$PATH" WORKDIR /app COPY --chown=user . /app # تثبيت المكتبات المطلوبة (بما في ذلك apify-client) RUN pip install --no-cache-dir -r requirements.txt EXPOSE 7860 CMD ["python", "app.py"]