a | b/app.yaml | ||
---|---|---|---|
1 | runtime: python310 # Python 3.10 |
||
2 | |||
3 | instance_class: F4 |
||
4 | |||
5 | entrypoint: uvicorn src.app:app --host 0.0.0.0 --port $PORT |
||
6 | |||
7 | handlers: |
||
8 | - url: /.* |
||
9 | script: auto # Automatically route requests to the application |
||
10 | |||
11 | automatic_scaling: |
||
12 | target_cpu_utilization: 0.85 # Set auto-scaling options based on your needs |
||
13 | min_instances: 0 |
||
14 | max_instances: 1 |
||
15 | |||
16 | includes: |
||
17 | - env.yaml |