File size: 468 Bytes
cd0464e 03e3e26 cd0464e 03e3e26 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | #!/bin/bash
set -euo pipefail
CONFIG_PATH="/app/config.yaml"
# Start the config watcher in the background (it pulls the config on first run)
/app/watch_config.sh &
# Wait for the config file to be written before starting LiteLLM
echo "[entrypoint] Waiting for ${CONFIG_PATH} to be available..."
until [ -f "${CONFIG_PATH}" ]; do
sleep 1
done
echo "[entrypoint] Config found, starting LiteLLM..."
exec litellm --config "${CONFIG_PATH}" --port 7860 --num_workers 2 |