fix: do not use pip system-wide anymore

Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
This commit is contained in:
Ettore Di Giacinto 2025-05-31 09:42:12 +02:00
parent 7a15ff166e
commit bcd770194b

View file

@ -95,12 +95,14 @@ RUN apt-get update && \
python-is-python3 \ python-is-python3 \
python3-dev llvm \ python3-dev llvm \
python3-venv && \ python3-venv && \
python3-grpcio-tools && \
apt-get clean && \ apt-get clean && \
rm -rf /var/lib/apt/lists/* && \ rm -rf /var/lib/apt/lists/*
pip install --upgrade pip # && \
# pip install --upgrade pip --break-system-packages
# Install grpcio-tools (the version in 22.04 is too old) # Install grpcio-tools (the version in 24.04 is too old)
RUN pip install --user grpcio-tools #RUN pip install --user grpcio-tools --break-system-packages
################################### ###################################
################################### ###################################