#!/usr/bin/env bash
# Build the RE image only — no GUI/desktop stack started. This is all you need
# for fully chat-driven, headless analysis (re-analyze / re-q / re-export / ...).
# Use ./re-up instead if you ALSO want the Ghidra GUI over VNC.
set -euo pipefail
cd "$(dirname "$0")"
docker compose build
echo
echo "Image ready. Headless workflow (no GUI needed):"
echo "  ./re-analyze <file-in-artifacts>      # import + analyze"
echo "  ./re-q <program> <command> [args...]  # live query"
echo "  ./re-export <program>                 # bulk export to ./output/"
