Update Dockerfile
Browse files123456789101112131415161778910181920212223242526271528FROM python:3.9-slim
# Evita errores de interactivosENV PYTHONUNBUFFERED=1
# Instala ffmpeg y dependenciasRUN apt-get update && \ apt-get install -y ffmpeg && \ apt-get clean && \ rm -rf /var/lib/apt/lists/*
# Crea y usa directorioWORKDIR /app
# Copia todos los archivosCOPY . /app
# Instala dependencias del sistemaRUN apt-get update && apt-get install -y ffmpeg && rm -rf /var/lib/apt/lists/*
# Instala las Python deps# Instala dependencias (incluye gunicorn aquí)RUN pip install --no-cache-dir -r requirements.txt
# Asegúrate de que gunicorn está en el PATHRUN which gunicorn
# Puerto que usará Hugging FaceEXPOSE 7860
# Lanza gunicorn si está en requirements.txtCMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:7860", "app:app"]CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:7860", "app:app"]Dockerfile+18-5