diff --git a/Dockerfile b/Dockerfile index db8c4d29..ca8cd632 100644 --- a/Dockerfile +++ b/Dockerfile @@ -31,5 +31,6 @@ RUN echo "==> Clean up..." && \ # 指定工作目录 EXPOSE 7860 +EXPOSE 8080 -CMD [ "python3", "app.py", "--host", "0.0.0.0", "--port", "7860"] \ No newline at end of file +CMD [ "python3", "-u", "app.py", "--host", "0.0.0.0", "--port", "7860"] \ No newline at end of file diff --git a/app.py b/app.py index 316ff656..b2ed4abf 100644 --- a/app.py +++ b/app.py @@ -643,4 +643,4 @@ def change_image_kb(image_kb_option): show_api=False, favicon_path=os.path.join(root_dir, "assets/hivision_logo.png"), root_path=args.root_path, - ) \ No newline at end of file + )