Spaces:
Build error
Build error
| # Dockerfile | |
| FROM python:3.10-slim | |
| WORKDIR /app | |
| RUN apt-get update && apt-get install -y \ | |
| libgl1 \ | |
| libglib2.0-0 \ | |
| git \ | |
| && rm -rf /var/lib/apt/lists/* | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir "numpy<2" -r requirements.txt | |
| # --- Utilise un token HF pour cloner le modèle privé --- | |
| # Remplace par ton VRAI nom de modèle et ton token HF | |
| ARG HF_TOKEN | |
| RUN git clone https://username:${HF_TOKEN}@huggingface.co/MODLI/ton-model-repo model | |
| COPY app_simple.py . | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "app_simple:app", "--host", "0.0.0.0", "--port", "7860"] |