The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
[Refactor] Dockerfile.non_root: drop UI drift guard approach
Yuneng Jiangdb4988510270
diff --git a/.dockerignore b/.dockerignoreindex 5a45dfc8b6a..a487d2a859a 100644--- a/.dockerignore+++ b/.dockerignore@@ -52,7 +52,3 @@ build/*.log.env.env.local--# UI source tree is not needed for the non_root image — the built output lives in-# litellm/proxy/_experimental/out/ and is copied directly.-ui/diff --git a/.github/workflows/ui-drift-guard.yml b/.github/workflows/ui-drift-guard.ymldeleted file mode 100644index c43a741d28b..00000000000--- a/.github/workflows/ui-drift-guard.yml+++ /dev/null@@ -1,47 +0,0 @@-name: UI Drift Guard-permissions:- contents: read--on:- pull_request:- branches:- - main- - litellm_internal_staging- - "litellm_**"- paths:- - "ui/litellm-dashboard/**"- - "litellm/proxy/_experimental/out/**"- - ".github/workflows/ui-drift-guard.yml"--jobs:- verify-ui-output-fresh:- runs-on: ubuntu-latest- timeout-minutes: 15- steps:- - uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0- with:- persist-credentials: false-- - uses: actions/setup-node@v4- with:- node-version: "20.20.2"- cache: "npm"- cache-dependency-path: ui/litellm-dashboard/package-lock.json-- - name: Build UI- working-directory: ui/litellm-dashboard- run: |- npm ci --no-audit --no-fund- npm run build-- - name: Compare against committed _experimental/out- run: |- set -euo pipefail- ( cd ui/litellm-dashboard/out && find . -type f -exec sha256sum {} + ) | sort > /tmp/fresh.txt- ( cd litellm/proxy/_experimental/out && find . -type f -exec sha256sum {} + ) | sort > /tmp/committed.txt- if ! diff -u /tmp/committed.txt /tmp/fresh.txt > /tmp/drift.txt; then- echo "::error::UI output is stale. Regenerate litellm/proxy/_experimental/out/ from ui/litellm-dashboard/out/."- head -200 /tmp/drift.txt- exit 1- fi- echo "UI output is fresh."diff --git a/docker/Dockerfile.non_root b/docker/Dockerfile.non_rootindex aef23cb4b12..b25c58ed7a0 100644--- a/docker/Dockerfile.non_root+++ b/docker/Dockerfile.non_root@@ -56,7 +56,7 @@ COPY . .ENV LITELLM_NON_ROOT=true# Stage the pre-built Admin UI from the checked-in Next.js static export.-# The UI Drift Guard CI workflow keeps _experimental/out/ in sync with ui/litellm-dashboard/ source.+# _experimental/out/ is regenerated as part of the release runbook.# Restructure extensionless routes (foo.html -> foo/index.html) to match the layout# proxy_server.py expects, and drop a readiness marker.RUN mkdir -p /var/lib/litellm/ui /var/lib/litellm/assets && \