diff --git a/Dockerfile b/Dockerfile index ecde888..1ebc186 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,4 +12,4 @@ COPY . . EXPOSE 5000 # 确保模块名和 Flask 实例名正确(默认是 app:app) -CMD ["gunicorn", "-w", "2", "-k", "gthread", "--threads", "4", "-b", "0.0.0.0:5001", "app:app"] +CMD ["gunicorn", "-w", "2", "-k", "gthread", "--threads", "4", "-b", "0.0.0.0:5000", "app:app"] diff --git a/app.py b/app.py index c948c9a..768171d 100644 --- a/app.py +++ b/app.py @@ -124,7 +124,7 @@ def health_check(): if __name__ == '__main__': - app.run(host='0.0.0.0', port=5001, threaded=True) + app.run(host='0.0.0.0', port=5000, threaded=True) else: application = app # 兼容 WSGI 标准(如 Gunicorn)