fix: add --no-cache to ensure frontend rebuilds with correct API base

This commit is contained in:
2026-03-15 12:57:40 +00:00
parent 4c45a57649
commit 3591ef2c84

View File

@@ -58,9 +58,9 @@ echo "📦 Using compose file: $COMPOSE_FILE"
echo "🧹 Cleaning up previous containers..." echo "🧹 Cleaning up previous containers..."
docker compose -f "$COMPOSE_FILE" down -v 2>/dev/null || true docker compose -f "$COMPOSE_FILE" down -v 2>/dev/null || true
# Build frontend with correct API base URL # Build frontend with correct API base URL (force no cache)
echo "🔨 Building frontend..." echo "🔨 Building frontend..."
docker compose -f "$COMPOSE_FILE" build --build-arg VITE_API_BASE=http://backend:8000 frontend docker compose -f "$COMPOSE_FILE" build --no-cache --build-arg VITE_API_BASE=http://backend:8000 frontend
# Start services # Start services
echo "📦 Starting services..." echo "📦 Starting services..."