Spaces:
Sleeping
Sleeping
Download Dockerfile from Nour774/blacksky-api: direct link, hf CLI and curl.
- Browser
- Download file 581 Bytes
-
https://huggingface.co/spaces/Nour774/blacksky-api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Nour774/blacksky-api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Nour774/blacksky-api/resolve/main/Dockerfile
581 Bytes
| # 1. استخدام نسخة Node.js خفيفة ومستقرة | |
| FROM node:20-slim | |
| # 2. تحديد مجلد العمل داخل الحاوية | |
| WORKDIR /app | |
| # 3. نسخ ملفات الحزم أولاً لتسريع البناء اللاحق | |
| COPY package*.json ./ | |
| # 4. تثبيت الحزم المطلوبة للمشروع | |
| RUN npm install | |
| # 5. نسخ باقي كود السيرفر إلى داخل الحاوية | |
| COPY . . | |
| # 6. فتح المنفذ الخاص بـ Hugging Face | |
| EXPOSE 7860 | |
| # 7. أمر تشغيل السيرفر فور تشغيل الحاوية | |
| CMD ["npm", "start"] |