From 0b5e9377e4d80db084341c513efe586182e25f87 Mon Sep 17 00:00:00 2001 From: Ethanfel Date: Mon, 19 Jan 2026 19:31:29 +0100 Subject: [PATCH] Add start.sh --- start.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 start.sh diff --git a/start.sh b/start.sh new file mode 100644 index 0000000..ee115af --- /dev/null +++ b/start.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +# 1. Navigate to app directory +cd /app + +# 2. Install dependencies (Including NiceGUI if missing) +# This checks your requirements.txt AND ensures nicegui is present +pip install --no-cache-dir -r requirements.txt + +# 3. Start NiceGUI in the Background (&) +# This runs silently while the script continues +echo "🚀 Starting NiceGUI on Port 8080..." +python3 gallery_app.py & + +# 4. Start Streamlit in the Foreground +# This keeps the container running +echo "🚀 Starting Streamlit on Port 8501..." +streamlit run app.py --server.port=8501 --server.address=0.0.0.0 \ No newline at end of file