FROM python:3.11-slim WORKDIR /app COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt COPY . . EXPOSE 8100 # 使用 waitress 运行 Flask 应用,监听 8100 端口 CMD ["python", "-m", "waitress", "--host", "0.0.0.0", "--port", "8100", "--threads", "8", "app:app"]