File size: 722 Bytes
1aa566a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
# ============================================================
# Render.com deployment config
# Free tier: 750h/month, auto-sleep after 15min inactivity
# ============================================================

services:
  - type: web
    name: self-healing-ml-api
    runtime: python
    plan: free
    buildCommand: |
      pip install -r requirements.txt &&
      python scripts/train_initial_model.py
    startCommand: uvicorn app:app --host 0.0.0.0 --port $PORT
    envVars:
      - key: PYTHONPATH
        value: /opt/render/project/src
      - key: PYTHONUNBUFFERED
        value: "1"
    disk:
      name: model-data
      mountPath: /opt/render/project/src/data
      sizeGB: 1
    healthCheckPath: /health