This commit is contained in:
parent
260009e8cb
commit
e72e6e1377
|
|
@ -1 +1 @@
|
||||||
3.11.9
|
3.13.0
|
||||||
|
|
|
||||||
|
|
@ -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
|
OPENAI_API_KEY=your_openai_api_key_here
|
||||||
ALPHA_VANTAGE_API_KEY=your_alpha_vantage_key_here
|
ALPHA_VANTAGE_API_KEY=your_alpha_vantage_key_here
|
||||||
TRADINGAGENTS_RESULTS_DIR=/opt/render/project/src/results
|
TRADINGAGENTS_RESULTS_DIR=/opt/render/project/src/results
|
||||||
PYTHON_VERSION=3.11.9
|
PYTHON_VERSION=3.13.0
|
||||||
```
|
```
|
||||||
|
|
||||||
> [!IMPORTANT]
|
> [!IMPORTANT]
|
||||||
> Render 要求 `PYTHON_VERSION` 必須是完整的版本號(例如 `3.11.9`),不能只是 `3.11`。
|
> Render 要求 `PYTHON_VERSION` 必須是完整的版本號(例如 `3.13.0`)。
|
||||||
|
|
||||||
#### 1.5 選擇免費方案
|
#### 1.5 選擇免費方案
|
||||||
- Instance Type: **Free**
|
- Instance Type: **Free**
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
# Multi-stage build for FastAPI backend
|
# 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
|
# Set working directory
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
@ -17,7 +18,7 @@ RUN pip install --no-cache-dir --upgrade pip && \
|
||||||
pip install --no-cache-dir -r requirements.txt
|
pip install --no-cache-dir -r requirements.txt
|
||||||
|
|
||||||
# Production stage
|
# Production stage
|
||||||
FROM python:3.11-slim
|
FROM python:3.13-slim
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ services:
|
||||||
startCommand: uvicorn app.main:app --host 0.0.0.0 --port $PORT
|
startCommand: uvicorn app.main:app --host 0.0.0.0 --port $PORT
|
||||||
envVars:
|
envVars:
|
||||||
- key: PYTHON_VERSION
|
- key: PYTHON_VERSION
|
||||||
value: 3.11.9
|
value: 3.13.0
|
||||||
- key: OPENAI_API_KEY
|
- key: OPENAI_API_KEY
|
||||||
sync: false
|
sync: false
|
||||||
- key: ALPHA_VANTAGE_API_KEY
|
- key: ALPHA_VANTAGE_API_KEY
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue