From 3c19e203209b9fbd0f147b6471e3e24a011d587e Mon Sep 17 00:00:00 2001 From: jasonli0226 Date: Tue, 12 May 2026 01:21:56 +0800 Subject: [PATCH] fix(scripts): rebuild sibling Docker images in update.mjs Mirror install.mjs by rebuilding clawix-agent:latest and clawix-python-runner:latest on update. These are sibling images (not in compose), so 'docker compose up --build' alone left them stale. Gated behind --no-build to match the compose build skip. --- scripts/update.mjs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/scripts/update.mjs b/scripts/update.mjs index 0f8213c..50f91b4 100755 --- a/scripts/update.mjs +++ b/scripts/update.mjs @@ -109,6 +109,16 @@ async function main() { ok('Pulled'); } + if (flags.build) { + step('Building agent Docker image'); + runVisible('docker build -t clawix-agent:latest -f infra/docker/agent/Dockerfile .'); + ok('clawix-agent:latest built'); + + step('Building python-runner Docker image'); + runVisible('docker build -t clawix-python-runner:latest infra/docker/python-runner'); + ok('clawix-python-runner:latest built'); + } + step('Restarting stack'); const buildFlag = flags.build ? '--build' : ''; runVisible(`docker compose -f "${composeFile}" up -d --remove-orphans ${buildFlag}`.trim());