File size: 506 Bytes
b51795f
af27448
 
 
 
b51795f
 
 
af27448
b51795f
 
af27448
 
 
b51795f
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Dockerfile (调试版本)
FROM python:3.10-slim

WORKDIR /app

# 确保使用的是我们确认过的 requirements.txt
COPY requirements.txt requirements.txt
RUN pip install --no-cache-dir -r requirements.txt

# 只复制 app.py,避免其他文件干扰
COPY app.py .

EXPOSE 8080

# 使用一个最简单的 Gunicorn 命令
# 注意:我们删除了 workers, timeout 等参数,只保留最核心的绑定
# 我们也删除了 HEALTHCHECK 指令
CMD ["gunicorn", "--bind", "0.0.0.0:8080", "app:app"]