Spaces:
Sleeping
Sleeping
| 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"] | |