arbol / Dockerfile
Si2469
Update Dockerfile
25ac0b9 verified
raw
history blame contribute delete
No virus
472 Bytes
# 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"]