Fix Telegram Bridge not running inside container
This commit is contained in:
5
start.sh
5
start.sh
@@ -4,8 +4,13 @@ if [ -d "/host_root" ]; then
|
||||
echo "Limpando processos conflitantes no HOST..."
|
||||
chroot /host_root /bin/bash -c "pkill -9 -f telegram_bot.js" || true
|
||||
chroot /host_root /bin/bash -c "pkill -9 -f bot_logic.py" || true
|
||||
chroot /host_root /bin/bash -c "pkill -9 -f bridge_telegram.py" || true
|
||||
fi
|
||||
|
||||
# Inicia a ponte do Telegram em background
|
||||
echo "Iniciando Telegram Bridge dentro do container..."
|
||||
python3 bridge_telegram.py &
|
||||
|
||||
# Inicia o serviço web com log unbuffered
|
||||
echo "Iniciando Uvicorn na porta ${PORT:-8001}..."
|
||||
exec uvicorn main:app --host 0.0.0.0 --port ${PORT:-8001}
|
||||
|
||||
Reference in New Issue
Block a user