#!/usr/bin/env bash # Run this ONCE before deploying the Portainer stack. # Builds all custom images and tags them for use without a registry. set -euo pipefail FIRECRAWL_SRC="/home/sparky/Docker/firecrawl/git/firecrawl" HHEM_SRC="/home/sparky/Docker/searXNG Firecrawl HHEM /hhem-api" echo "=== [1/4] Building firecrawl-postgres:local ===" docker build -t firecrawl-postgres:local "$FIRECRAWL_SRC/apps/nuq-postgres" echo "=== [2/4] Building firecrawl-playwright:local ===" docker build -t firecrawl-playwright:local "$FIRECRAWL_SRC/apps/playwright-service-ts" echo "=== [3/4] Building firecrawl-api:local ===" docker build -t firecrawl-api:local "$FIRECRAWL_SRC/apps/api" echo "=== [4/4] Building hhem-api:local ===" docker build -t hhem-api:local "$HHEM_SRC" echo "" echo "All images built. You can now deploy the Portainer stack." docker images | grep -E "firecrawl|hhem-api"