diff --git a/.python-version b/.python-version index 2419ad5b..4eba2a62 100644 --- a/.python-version +++ b/.python-version @@ -1 +1 @@ -3.11.9 +3.13.0 diff --git a/DEPLOY.md b/DEPLOY.md index 80b7b8cb..4a3eecb0 100644 --- a/DEPLOY.md +++ b/DEPLOY.md @@ -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** diff --git a/backend/Dockerfile b/backend/Dockerfile index 0acca5d8..d25393be 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -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 diff --git a/render.yaml b/render.yaml index 1e25714b..d60be178 100644 --- a/render.yaml +++ b/render.yaml @@ -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