quitar auto

This commit is contained in:
2025-03-13 21:59:51 +01:00
parent cae8b3732d
commit f4874489c3
2 changed files with 1 additions and 12 deletions

View File

@ -14,6 +14,6 @@ RUN chmod +x /app/auto.sh
RUN ls 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"] CMD ["/bin/sh", "-c", "uvicorn app.main:app --reload --host 0.0.0.0 --port 8000"]

View File

@ -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