diff --git a/app/Dockerfile b/app/Dockerfile index 62c1493..86b4528 100644 --- a/app/Dockerfile +++ b/app/Dockerfile @@ -14,6 +14,6 @@ RUN chmod +x /app/auto.sh RUN ls -# Ejecuta el script auto.sh al iniciar el contenedor, luego ejecuta uvicorn +# Ejecuta uvicorn CMD ["/bin/sh", "-c", "uvicorn app.main:app --reload --host 0.0.0.0 --port 8000"] diff --git a/app/auto.sh b/app/auto.sh deleted file mode 100644 index 6d3ebb1..0000000 --- a/app/auto.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash -# auto.sh - Script que ejecuta el scrapper cada 24 horas con un bucle infinito - -while true -do - # Ejecutar el script Python - python /app/webscrapper.py - - # Dormir por 24 horas (86400 segundos) - sleep 86400 -done \ No newline at end of file