#!/bin/sh set -e echo "== Avvio container ==" # indicizzazione automatica solo se mancano i file indice if [ ! -f /app/index.npz ] || [ ! -f /app/index_meta.json ]; then echo "Indice non trovato: eseguo ingest in modalità fast..." python /app/ingest.py --no-estimate --fast fi echo "== Lancio API ==" exec uvicorn app:app --host 0.0.0.0 --port ${PORT:-7860}