Spaces:
Runtime error
Runtime error
File size: 504 Bytes
8e2de15 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
# Usa una imagen base de Python
FROM python:3.9
# Establece el directorio de trabajo
WORKDIR /code
RUN apt-get update && apt-get install ffmpeg libsm6 libxext6 -y
# Copia los archivos necesarios al contenedor
COPY ./requirements.txt /code/requirements.txt
RUN pip install --no-cache-dir -r /code/requirements.txt
COPY app.py matrizMM.txt somlucuma.pkl ./
RUN chmod -R 777 /code
# Comando para ejecutar la aplicación
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|