mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-07 02:59:05 +00:00
build: update dockerfile non root
This commit is contained in:
parent
8ee298f9c9
commit
a5a05bb143
1 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue