From 84fa375ef746e1346c638b84dd01f58e6c20554c Mon Sep 17 00:00:00 2001 From: Tadashi Date: Fri, 3 Jan 2025 14:26:04 +0700 Subject: [PATCH] fix: update Dockerfile --- Dockerfile | 1 + launch.sh | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) mode change 100644 => 100755 launch.sh diff --git a/Dockerfile b/Dockerfile index 02dab982..c73be701 100644 --- a/Dockerfile +++ b/Dockerfile @@ -35,6 +35,7 @@ RUN bash scripts/download_pdfjs.sh $PDFJS_PREBUILT_DIR # Copy contents COPY . /app +COPY launch.sh /app/launch.sh COPY .env.example /app/.env # Install pip packages diff --git a/launch.sh b/launch.sh old mode 100644 new mode 100755 index 34b289ac..1a9119c6 --- a/launch.sh +++ b/launch.sh @@ -2,7 +2,7 @@ if [ -z "$GRADIO_SERVER_NAME" ]; then export GRADIO_SERVER_NAME="0.0.0.0" -if +fi if [ -z "$GRADIO_SERVER_PORT" ]; then export GRADIO_SERVER_PORT="7860" fi @@ -11,8 +11,7 @@ fi if [ "$KH_DEMO_MODE" = "true" ]; then echo "KH_DEMO_MODE is true. Launching in demo mode..." # Command to launch in demo mode - GR_FILE_ROOT_PATH="/app" KH_FEATURE_USER_MANAGEMENT=false USE_LIGHTRAG=false \ - uvicorn sso_app_demo:app --host "$GRADIO_SERVER_NAME" --port "$GRADIO_SERVER_PORT" + GR_FILE_ROOT_PATH="/app" KH_FEATURE_USER_MANAGEMENT=false USE_LIGHTRAG=false uvicorn sso_app_demo:app --host "$GRADIO_SERVER_NAME" --port "$GRADIO_SERVER_PORT" else python app.py fi