From f4874489c30dedf9f9b3113c91c8f3e045207a57 Mon Sep 17 00:00:00 2001 From: imunnic Date: Thu, 13 Mar 2025 21:59:51 +0100 Subject: [PATCH] quitar auto --- app/Dockerfile | 2 +- app/auto.sh | 11 ----------- 2 files changed, 1 insertion(+), 12 deletions(-) delete mode 100644 app/auto.sh 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