Spaces:
Sleeping
Sleeping
File size: 381 Bytes
6039d0c 0cfe8c0 6039d0c 0cfe8c0 6039d0c 0cfe8c0 6039d0c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
## ملف `Dockerfile` (اختياري)
```dockerfile
FROM python:3.9-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
RUN mkdir -p /app/model_cache && chmod -R 777 /app/model_cache
ENV TRANSFORMERS_CACHE=/app/model_cache
ENV HF_HOME=/app/model_cache
COPY . .
CMD ["gunicorn", "--bind", "0.0.0.0:8080", "app:app"] |