From a5a05bb143e950d9f09859e62d3e7793d28f9cf9 Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Tue, 2 Dec 2025 17:48:29 -0800 Subject: [PATCH] build: update dockerfile non root --- docker/Dockerfile.non_root | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docker/Dockerfile.non_root b/docker/Dockerfile.non_root index 8b66a367eeb..f05c9feb916 100644 --- a/docker/Dockerfile.non_root +++ b/docker/Dockerfile.non_root @@ -58,9 +58,12 @@ RUN cd /tmp/litellm_ui && \ RUN cd /app/ui/litellm-dashboard && rm -rf ./out # Build package and wheel dependencies +# Use prebuilt binary wheels to avoid compilation issues with minimal toolchain +ENV GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=1 \ + GRPC_PYTHON_DISABLE_LIBC_COMPATIBILITY=1 RUN rm -rf dist/* && python -m build && \ pip install dist/*.whl && \ - pip wheel --no-cache-dir --wheel-dir=/wheels/ -r requirements.txt + pip wheel --no-cache-dir --wheel-dir=/wheels/ --prefer-binary -r requirements.txt # ----------------- # Runtime Stage