Spaces:
Sleeping
Sleeping
| FROM python:3.9 | |
| WORKDIR /code | |
| COPY ./requirements.txt /code/requirements.txt | |
| RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt | |
| # Copier les fichiers | |
| COPY . /code | |
| # Créer un dossier pour les caches éventuels | |
| RUN mkdir -p /code/cache | |
| RUN chmod 777 /code/cache | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |