fix: auto-start litellm on container start, add missing DEEPSEEK_API_KEY env
Deploy Claude Dev (Dev) / deploy-claude-dev-dev (push) Failing after 39s

This commit is contained in:
Gan, Jimmy
2026-06-08 09:06:51 +08:00
parent f3f32a1853
commit ff74fc0b65
2 changed files with 4 additions and 6 deletions
+1 -1
View File
@@ -13,4 +13,4 @@ COPY scripts/start-litellm.sh /opt/claude-dev/scripts/start-litellm.sh
RUN chmod +x /opt/claude-dev/scripts/*.sh
# Start LiteLLM proxy, then bash
CMD ["sh", "-c", "DEEPSEEK_API_KEY=${DEEPSEEK_API_KEY} litellm --config /etc/claude-dev/litellm.yaml --port 4008 --host 0.0.0.0 > /tmp/litellm.log 2>&1 & exec bash"]
CMD ["/opt/claude-dev/scripts/start-litellm.sh"]
+3 -5
View File
@@ -1,6 +1,4 @@
#!/bin/sh
# LiteLLM start script for claude-dev container
# This starts the Anthropic-to-OpenAI translation proxy for DeepSeek
# The container should have DEEPSEEK_API_KEY set in its environment
exec litellm --config /etc/claude-dev/litellm.yaml --port 4008 --host 0.0.0.0
/usr/local/bin/litellm --config /etc/claude-dev/litellm.yaml --port 4008 --host 0.0.0.0 > /tmp/litellm.log 2>&1 &
sleep 2
exec bash "$@"