quitar auto
This commit is contained in:
@ -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"]
|
||||
|
||||
|
11
app/auto.sh
11
app/auto.sh
@ -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
|
Reference in New Issue
Block a user