Spaces:
Running
Running
| # ============================================================ | |
| # render.yaml — Render.com deployment config (architecture doc 5.2) | |
| # | |
| # PLAYWRIGHT ON RENDER: | |
| # To enable Tier 4 visual analysis (Playwright + Chromium), you need: | |
| # | |
| # 1. Add ENABLE_VISUAL_TIER=1 env var below | |
| # 2. Switch from python:3.10-slim to a full image in Dockerfile | |
| # OR add Chromium system deps to the Dockerfile: | |
| # apt-get install -y libnss3 libatk1.0-0 libatk-bridge2.0-0 \ | |
| # libcups2 libxkbcommon0 libgbm1 libpango-1.0-0 \ | |
| # libcairo2 libasound2 libxdamage1 libxrandr2 libxfixes3 | |
| # 3. Add to Dockerfile after pip install: | |
| # RUN pip install playwright && playwright install chromium | |
| # | |
| # NOTE: Playwright + Chromium adds ~400MB to the Docker image. | |
| # On the free tier (512MB RAM), this may cause OOM. | |
| # Only enable if you have a paid plan with >= 1GB RAM. | |
| # ============================================================ | |
| services: | |
| - type: web | |
| name: phishguard-api | |
| runtime: docker | |
| dockerfilePath: ./Dockerfile | |
| plan: free | |
| healthCheckPath: /health | |
| autoDeploy: true | |
| envVars: | |
| - key: PORT | |
| value: "8000" | |
| # Uncomment below to enable Tier 4 visual analysis (needs Playwright in Dockerfile) | |
| # - key: ENABLE_VISUAL_TIER | |
| # value: "1" | |