litellm/docker/build_from_pip
Harshit28j 9a4fd61e46 fix(ci): fix all remaining test failures for release
Anthropic structured output:
- Fix $ref resolution and additionalProperties for Anthropic output_format
- Fixes test_json_response_pydantic_obj, test_json_response_nested_*,
  test_tool_call_and_json_response_format, test_completion_thinking_with_response_format

Test fixes:
- test_validate_environment_raises_without_key: clear env vars with monkeypatch
- test_stream_chunk_builder_openai_audio_output_usage: fix exception handling
  and use resilient field-level assertions
- test_streamable_http_mcp_handler_mock: add missing auth context patches
- test_transcription_on_router: reset file position between API calls
- test_metadata_passed_to_custom_callback_codex_models: add try/finally cleanup
- Update test docstring to reference MidStreamFallbackError

Infrastructure:
- Sync proxy-extras schema.prisma with litellm/proxy/schema.prisma
- Switch Docker build_from_pip from Alpine to Debian slim (polars needs glibc)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-06 19:52:05 +05:30
..
Dockerfile.build_from_pip fix(ci): fix all remaining test failures for release 2026-03-06 19:52:05 +05:30
litellm_config.yaml (feat) - allow building litellm proxy from pip package (#7633) 2025-01-08 16:36:57 -08:00
Readme.md (feat) - allow building litellm proxy from pip package (#7633) 2025-01-08 16:36:57 -08:00
requirements.txt fix(ci): use litellm 1.82.0 in docker build (1.82.1 not on PyPI) 2026-03-06 18:41:50 +05:30

Docker to build LiteLLM Proxy from litellm pip package

When to use this ?

If you need to build LiteLLM Proxy from litellm pip package, you can use this Dockerfile as a reference.

Why build from pip package ?

  • If your company has a strict requirement around security / building images you can follow steps outlined here