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
Deploy Claude Dev (Dev) / deploy-claude-dev-dev (push) Failing after 39s
This commit is contained in:
@@ -13,4 +13,4 @@ COPY scripts/start-litellm.sh /opt/claude-dev/scripts/start-litellm.sh
|
|||||||
RUN chmod +x /opt/claude-dev/scripts/*.sh
|
RUN chmod +x /opt/claude-dev/scripts/*.sh
|
||||||
|
|
||||||
# Start LiteLLM proxy, then bash
|
# 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"]
|
||||||
|
|||||||
Regular → Executable
+3
-5
@@ -1,6 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# LiteLLM start script for claude-dev container
|
/usr/local/bin/litellm --config /etc/claude-dev/litellm.yaml --port 4008 --host 0.0.0.0 > /tmp/litellm.log 2>&1 &
|
||||||
# This starts the Anthropic-to-OpenAI translation proxy for DeepSeek
|
sleep 2
|
||||||
# The container should have DEEPSEEK_API_KEY set in its environment
|
exec bash "$@"
|
||||||
|
|
||||||
exec litellm --config /etc/claude-dev/litellm.yaml --port 4008 --host 0.0.0.0
|
|
||||||
|
|||||||
Reference in New Issue
Block a user