This commit is contained in:
MarkLo 2025-11-21 08:24:39 +08:00
parent 260009e8cb
commit e72e6e1377
4 changed files with 7 additions and 6 deletions

View File

@ -1 +1 @@
3.11.9
3.13.0

View File

@ -84,11 +84,11 @@ Start Command: uvicorn app.main:app --host 0.0.0.0 --port $PORT
OPENAI_API_KEY=your_openai_api_key_here
ALPHA_VANTAGE_API_KEY=your_alpha_vantage_key_here
TRADINGAGENTS_RESULTS_DIR=/opt/render/project/src/results
PYTHON_VERSION=3.11.9
PYTHON_VERSION=3.13.0
```
> [!IMPORTANT]
> Render 要求 `PYTHON_VERSION` 必須是完整的版本號(例如 `3.11.9`),不能只是 `3.11`
> Render 要求 `PYTHON_VERSION` 必須是完整的版本號(例如 `3.13.0`
#### 1.5 選擇免費方案
- Instance Type: **Free**

View File

@ -1,5 +1,6 @@
# Multi-stage build for FastAPI backend
FROM python:3.11-slim as builder
# Multi-stage build for FastAPI backend
FROM python:3.13-slim as builder
# Set working directory
WORKDIR /app
@ -17,7 +18,7 @@ RUN pip install --no-cache-dir --upgrade pip && \
pip install --no-cache-dir -r requirements.txt
# Production stage
FROM python:3.11-slim
FROM python:3.13-slim
WORKDIR /app

View File

@ -9,7 +9,7 @@ services:
startCommand: uvicorn app.main:app --host 0.0.0.0 --port $PORT
envVars:
- key: PYTHON_VERSION
value: 3.11.9
value: 3.13.0
- key: OPENAI_API_KEY
sync: false
- key: ALPHA_VANTAGE_API_KEY