From abf05a60fb27b83055074d5b76a35620a0513be9 Mon Sep 17 00:00:00 2001 From: Matthew Grotke Date: Fri, 22 May 2026 02:33:38 -0400 Subject: [PATCH] Development --- routlin/install.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/routlin/install.py b/routlin/install.py index be847cc..b338942 100644 --- a/routlin/install.py +++ b/routlin/install.py @@ -248,11 +248,20 @@ def setup_docker_compose(reuse_config=False): f" Ensure the routlin-dash directory is at {COMPOSE_FILE.parent}") if reuse_config: + import time + cache_bust = str(int(time.time())) print("\n Stopping existing container...") subprocess.run(["docker", "compose", "down"], cwd=COMPOSE_FILE.parent, check=False) + print("\n Building dashboard image...") + result = subprocess.run( + ["docker", "compose", "build", "--build-arg", f"CACHE_BUST={cache_bust}"], + cwd=COMPOSE_FILE.parent, check=False + ) + if result.returncode != 0: + die("docker compose build failed. Check the output above.") print("\n Starting dashboard container...") result = subprocess.run( - ["docker", "compose", "up", "-d", "--build"], + ["docker", "compose", "up", "-d"], cwd=COMPOSE_FILE.parent, check=False ) if result.returncode != 0: