Compare commits
No commits in common. "2696e55163feffa1a382eb56bb8e9bb833a8ab45" and "463fa2ae388cfed615dc5607c883772dd73e3b77" have entirely different histories.
2696e55163
...
463fa2ae38
|
@ -19,4 +19,4 @@ RUN pip install --no-cache-dir -r requirements.txt -i https://mirrors.aliyun.com
|
|||
EXPOSE 5000
|
||||
|
||||
# 启动命令(使用 Gunicorn 替代 Flask 开发服务器)
|
||||
CMD ["waitress-serve", "--host", "0.0.0.0:5000", "--port", "5000", "app:app"]
|
||||
CMD ["gunicorn", "--bind", "0.0.0.0:5000", "--workers", "4", "--timeout", "300", "app:app"]
|
|
@ -1,6 +1,6 @@
|
|||
# 基础依赖
|
||||
Flask==3.1.0
|
||||
waitress==3.0.2
|
||||
gunicorn==20.0.4 # 生产环境推荐
|
||||
transformers==4.26.0
|
||||
|
||||
# 数据处理
|
||||
|
|
Loading…
Reference in New Issue