mirror of
https://github.com/Cinnamon/kotaemon.git
synced 2025-12-16 11:47:48 +01:00
fix: update Dockerfile
This commit is contained in:
@@ -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
|
||||
|
||||
5
launch.sh
Normal file → Executable file
5
launch.sh
Normal file → Executable file
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user