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