FROM node:lts-buster # تثبيت المتطلبات الأساسية RUN apt-get update && \ apt-get install -y \ git \ ffmpeg \ imagemagick \ webp && \ apt-get upgrade -y && \ rm -rf /var/lib/apt/lists/* # إنشاء مجلد العمل WORKDIR /app # استنساخ المشروع RUN git clone https://github.com/omarvip212/bot0.git . # تثبيت الاعتماديات COPY package*.json ./ RUN npm install --force RUN npm install cheerio@1.0.0-rc.12 # نسخ باقي الملفات COPY . . # تعيين الصلاحيات RUN chmod -R 777 /app # تشغيل البوت CMD ["node", "index.js"]