#!/bin/bash
# run_cleanup_stats.sh — 共享宿主机网络栈，通过 127.0.0.1 trust 连接 PG
set -e

docker run --rm --network host \
  -e DATABASE_URL="postgresql+asyncpg://scilit@127.0.0.1:5432/scilit" \
  -e JWT_SECRET="dev-secret-key-for-scilit-oncology-platform" \
  -e REDIS_URL="redis://127.0.0.1:6379" \
  -e SPECIALTY="oncology" \
  -v /root/scilit/backend/app/data/mtrees2025.bin:/app/app/data/mtrees2025.bin \
  -v /root/scilit/backend/scripts/cleanup_false_positives.py:/app/scripts/cleanup_false_positives.py \
  -v /root/scilit/backend/app/services/mesh_filter.py:/app/app/services/mesh_filter.py \
  scilit-backend python /app/scripts/cleanup_false_positives.py "$@"
