#!/bin/bash
set -e
cd "$(dirname "$0")/source_clean"

VERSION=$(cat ../VERSION)
echo "🔨 Building CloudSearch v${VERSION}..."
cp ../VERSION ./VERSION
docker build -t cloudsearch-app:v${VERSION} -t cloudsearch-app:latest .

echo "✅ Built: cloudsearch-app:v${VERSION} + cloudsearch-app:latest"
echo "   Run: docker-compose up -d app"
