claude-dev: bake LiteLLM proxy + URL patch into Docker image
Deploy Claude Dev (Dev) / deploy-claude-dev-dev (push) Failing after 2m3s
Deploy Claude Dev (Dev) / deploy-claude-dev-dev (push) Failing after 2m3s
- Add python3-pip + litellm[proxy] to base image - Replace broken regex preflight patch with working binary URL replacement (api.anthropic.com, platform.claude.com, claude.ai → localhost:4008) - Auto-start LiteLLM on port 4008 via CMD (no more manual restart) - Add litellm.yaml config and start-litellm.sh script - Add .env.example - Update docker-compose.yml env_file path to relative ./.env Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -6,9 +6,11 @@ COPY required-tools.txt /opt/claude-dev/required-tools.txt
|
||||
COPY scripts /opt/claude-dev/scripts
|
||||
|
||||
# LiteLLM translation proxy config
|
||||
RUN mkdir -p /etc/claude-dev
|
||||
COPY config/litellm.yaml /etc/claude-dev/litellm.yaml
|
||||
COPY scripts/start-litellm.sh /opt/claude-dev/scripts/start-litellm.sh
|
||||
|
||||
RUN chmod +x /opt/claude-dev/scripts/*.sh
|
||||
|
||||
CMD ["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"]
|
||||
|
||||
Reference in New Issue
Block a user