Add start.sh

This commit is contained in:
2026-01-19 19:31:29 +01:00
parent 091936069a
commit 0b5e9377e4

18
start.sh Normal file
View File

@@ -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