Spaces:
Runtime error
Runtime error
File size: 541 Bytes
87071e6 3e8e10c 87071e6 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
FROM python:3.10-slim
WORKDIR /app
# Instala dependencias del sistema necesarias
RUN apt-get update && apt-get install -y \
libsndfile1 \
ffmpeg \
git \
&& rm -rf /var/lib/apt/lists/*
# Copia requirements
COPY requirements.txt .
# Instala dependencias Python
RUN pip install --no-cache-dir -r requirements.txt
# Copia el código de la aplicación
COPY . .
# NO descargar el modelo aquí - se descarga en runtime
# Esto evita problemas de memoria durante el build
EXPOSE 7860
# Ejecuta la app
CMD ["python", "app.py"]
|