| FROM python:3.10-slim | |
| # Instalar dependencias del sistema | |
| RUN apt-get update && apt-get install -y \ | |
| ffmpeg \ | |
| libsndfile1 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Crear directorio de trabajo | |
| WORKDIR /app | |
| # Copiar archivos de requisitos | |
| COPY requirements.txt . | |
| COPY packages.txt . | |
| # Instalar dependencias de Python | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copiar aplicación | |
| COPY app.py . | |
| COPY README.md . | |
| # Exponer puerto | |
| EXPOSE 7860 | |
| # Comando para ejecutar | |
| CMD ["python", "app.py"] |