Spaces:
Sleeping
Sleeping
File size: 472 Bytes
d7a42e5 c09c9e1 d7a42e5 c09c9e1 9f6ad7f d7a42e5 c09c9e1 25ac0b9 c09c9e1 d7a42e5 c09c9e1 d7a42e5 c09c9e1 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
# 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 miarbol.pkl ./
RUN chmod -R 777 /code
# Comando para ejecutar la aplicación
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |