File size: 428 Bytes
9111274
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
set -e

echo "Starting Redis server..."
# Start Redis in the background
redis-server &

echo "Starting Telegram bot..."
# Start the Telegram bot in the background (ensure __main__ in bot.py is set to run the bot)
python -m src.tele_bot.bot &

echo "Starting FastAPI application..."
# Start FastAPI with Uvicorn in the foreground so the container keeps running.
exec uvicorn app.src.api:app --host 0.0.0.0 --port 7860 --workers 1