File size: 745 Bytes
3d1332e
 
 
 
 
 
 
 
 
 
f30935d
 
 
 
3d1332e
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM python:3.12-slim
WORKDIR /app

RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/*

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

COPY app/ app/

# RAPIDAPI_PROXY_SECRET is NOT baked into the image — set it as a masked
# HF Space secret (Settings → Variables and secrets) using the exact value
# the RapidAPI gateway injects. While unset, proxy-secret validation stays
# dormant so live clients are never blocked.
ENV DATABASE_URL=sqlite:///./revai.db
ENV SECRET_KEY=revai-production-hf-secret-key-2026

EXPOSE 7860
HEALTHCHECK --interval=30s --timeout=5s CMD curl -f http://localhost:7860/v1/health || exit 1
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]