File size: 451 Bytes
619f913
 
 
 
19c28b2
619f913
 
19c28b2
619f913
19c28b2
619f913
19c28b2
 
619f913
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM python:3.11-slim

WORKDIR /app

# 安装 git(给 huggingface_hub 用),可按需精简
RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*

# 把 loader 和 requirements 复制进镜像
COPY app_loader.py ./app_loader.py
COPY requirements.txt ./requirements.txt

# 安装 Python 依赖(包含 yfinance / plotly 等)
RUN pip install --no-cache-dir -r requirements.txt

EXPOSE 7860

CMD ["python", "app_loader.py"]