Compare commits

..

2 Commits

Author SHA1 Message Date
renzhiyuan 2696e55163 1 2025-08-05 10:35:13 +08:00
renzhiyuan 858e80172b 1 2025-08-05 10:35:03 +08:00
2 changed files with 2 additions and 2 deletions

View File

@ -19,4 +19,4 @@ RUN pip install --no-cache-dir -r requirements.txt -i https://mirrors.aliyun.com
EXPOSE 5000
# 启动命令(使用 Gunicorn 替代 Flask 开发服务器)
CMD ["gunicorn", "--bind", "0.0.0.0:5000", "--workers", "4", "--timeout", "300", "app:app"]
CMD ["waitress-serve", "--host", "0.0.0.0:5000", "--port", "5000", "app:app"]

View File

@ -1,6 +1,6 @@
# 基础依赖
Flask==3.1.0
gunicorn==20.0.4 # 生产环境推荐
waitress==3.0.2
transformers==4.26.0
# 数据处理