Skip to content

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]

[Infra] Dockerfile.non_root: slim C toolchain in builder stage

Cursor Agentca52e346b0b5
diff --git a/docker/Dockerfile.non_root b/docker/Dockerfile.non_root
index 9f32f57c6f8..756fe0cea0f 100644
--- a/docker/Dockerfile.non_root
+++ b/docker/Dockerfile.non_root
@@ -15,29 +15,21 @@ COPY --from=uvbin /uv /usr/local/bin/uv
COPY --from=uvbin /uvx /usr/local/bin/uvx
RUN for i in 1 2 3; do \
- apk add --no-cache \
- python3 \
- python3-dev \
- clang \
- llvm \
- lld \
- gcc \
- linux-headers \
- build-base \
- bash \
- coreutils \
- curl \
- openssl \
- openssl-dev \
- nodejs \
- npm \
- libsndfile && break || sleep 5; \
+ apk add --no-cache \
+ python3 \
+ python3-dev \
+ gcc \
+ bash \
+ coreutils \
+ curl \
+ openssl \
+ libsndfile \
+ nodejs && break || sleep 5; \
done
ENV UV_PROJECT_ENVIRONMENT=/app/.venv \
UV_LINK_MODE=copy \
- NVM_DIR=/root/.nvm \
- PATH="/root/.nvm/versions/node/v20.20.2/bin:/app/.venv/bin:${PATH}" \
+ PATH="/app/.venv/bin:${PATH}" \
LITELLM_NON_ROOT=true \
PRISMA_BINARY_CACHE_DIR=/app/.cache/prisma-python/binaries \
PRISMA_CLI_BINARY_TARGETS="debian-openssl-3.0.x" \