Spaces:
Sleeping
Sleeping
Download Dockerfile from Soltane777/webProjet2: direct link, hf CLI and curl.
- Browser
- Download file 477 Bytes
-
https://huggingface.co/spaces/Soltane777/webProjet2/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Soltane777/webProjet2/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Soltane777/webProjet2/resolve/main/Dockerfile
477 Bytes
| # استخدام صورة Python | |
| FROM python:3.8 | |
| # تعيين مجلد العمل | |
| WORKDIR /app | |
| # نسخ ملفات المشروع إلى الحاوية | |
| COPY backend/ backend/ | |
| COPY frontend/ frontend/ | |
| COPY requirements.txt requirements.txt | |
| # تثبيت المكتبات المطلوبة | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # تشغيل التطبيق عند تشغيل الحاوية | |
| CMD ["uvicorn", "backend.main:app", "--host", "0.0.0.0", "--port", "7860"] | |