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