litellm/docker/prod_entrypoint.sh
Josh Bonczkowski 4c1ece3379 Addressing minor feedback
- Put a cap on newrelic version on v13. v12 just released and is still compatible.
- Ensured the shell script ends in a newline
2026-03-13 14:14:14 -04:00

16 lines
437 B
Bash

#!/bin/sh
if [ "$SEPARATE_HEALTH_APP" = "1" ]; then
export LITELLM_ARGS="$@"
export SUPERVISORD_STOPWAITSECS="${SUPERVISORD_STOPWAITSECS:-3600}"
exec supervisord -c /etc/supervisord.conf
fi
if [ "$USE_DDTRACE" = "true" ]; then
export DD_TRACE_OPENAI_ENABLED="False"
exec ddtrace-run litellm "$@"
elif [ "$USE_NEWRELIC" = "true" ]; then
exec newrelic-admin run-program litellm "$@"
else
exec litellm "$@"
fi