Spaces:
Paused
Paused
Download Dockerfile from omar0scarf/bot: direct link, hf CLI and curl.
- Browser
- Download file 638 Bytes
-
https://huggingface.co/spaces/omar0scarf/bot/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/omar0scarf/bot/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/omar0scarf/bot/resolve/main/Dockerfile
638 Bytes
| 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"] |