Spaces:
Sleeping
Sleeping
| FROM python:3.10-slim | |
| # Installer dépendances système pour audio/vidéo | |
| RUN apt-get update && apt-get install -y \ | |
| ffmpeg \ | |
| nginx \ | |
| && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| # Installer dépendances Python | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copier ton code | |
| COPY app.py . | |
| COPY nginx.conf /etc/nginx/nginx.conf | |
| # Exposer ports | |
| EXPOSE 7860 8080 | |
| # Lancer Nginx + Uvicorn | |
| CMD service nginx start && uvicorn app:app --host 0.0.0.0 --port 7860 | |