nxtgauge-backend-rust/scripts/build-base-image.sh
Ashwin Kumar Sivakumar c85e6af22e feat(ai): complete AI plans/credits implementation and build tooling
- Add AI plans, credits, model routing, LiteLLM client, and orchestrator services
- Add AI management endpoints, auto-apply/auto-request handlers, and log endpoints
- Add cron jobs for daily action reset and monthly credit reset
- Add AI credit purchase flow in payments service
- Add ai_credit_packages migration with seed data
- Update Dockerfile build tooling across services
2026-06-15 06:15:49 +05:30

22 lines
718 B
Bash
Executable file

#!/bin/bash
# build-base-image.sh - Build base image with all dependencies cached
# Run this once when dependencies change (not on every build!)
set -e
REGISTRY="registry.nxtgauge.com"
DATE_TAG=$(date +%Y%m%d)
echo "🔨 Building base image with all dependencies..."
# Build base image with cargo-chef
docker build -f Dockerfile.base -t ${REGISTRY}/nxtgauge-rust-base:latest -t ${REGISTRY}/nxtgauge-rust-base:${DATE_TAG} .
echo "📤 Pushing base image..."
docker push ${REGISTRY}/nxtgauge-rust-base:latest
docker push ${REGISTRY}/nxtgauge-rust-base:${DATE_TAG}
echo "✅ Base image built and pushed!"
echo ""
echo "Now builds will use cached dependencies!"
echo "Build time: 15-20 min -> 30-60 seconds"