File size: 849 Bytes
753201e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
FROM python:3.11-slim

# Phase 3 deployment — RingGuard FastAPI dashboard
# Razorpay actions are precomputed and baked into cases_demo.json / audit_log.jsonl.
# The deployed container only DISPLAYS these precomputed results; it does NOT
# re-execute Razorpay calls or LLM calls on page load (per Phase 3 Section 6.2).

WORKDIR /app

# Install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

# Copy source code and precomputed results
COPY agent/       agent/
COPY api/         api/
COPY audit/       audit/
COPY data/        data/
COPY graph/       graph/
COPY integration/ integration/
COPY scoring/     scoring/
COPY eval/        eval/

# HuggingFace Spaces expects port 7860
ENV PORT=7860
EXPOSE 7860

# Start the FastAPI dashboard
CMD ["uvicorn", "api.main:app", "--host", "0.0.0.0", "--port", "7860"]