-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrender.yaml
More file actions
21 lines (20 loc) · 712 Bytes
/
render.yaml
File metadata and controls
21 lines (20 loc) · 712 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Render Blueprint Configuration
# Deploy: https://render.com/docs/blueprint-spec
services:
- type: web
name: ticket-classifier-api
runtime: python
region: oregon
plan: free
buildCommand: |
pip install -r requirements.txt
python -c "import nltk; nltk.download('punkt', quiet=True); nltk.download('punkt_tab', quiet=True); nltk.download('stopwords', quiet=True); nltk.download('wordnet', quiet=True)"
python scripts/train.py
startCommand: uvicorn src.api.main:app --host 0.0.0.0 --port $PORT
envVars:
- key: PYTHON_VERSION
value: 3.11.0
- key: PYTHONPATH
value: /opt/render/project/src
healthCheckPath: /health
autoDeploy: true