mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-06-27 18:50:41 +00:00
fix(build): add UBI 9 compiler tool‑chain (#1983)
# What does this PR do? Fixes the UBI 9 container build failure ( `error: command 'gcc' failed` when installing `polyleven`, `faiss`, etc.) by installing the missing compiler tool‑chain: - `python3.11-devel gcc` make added to the UBI 9 `dnf install` line. ### Closes #1970 ## Test Plan - Build a distro with an UBI image
This commit is contained in:
parent
4c6b7005fa
commit
e72b1076ca
1 changed files with 5 additions and 1 deletions
|
@ -72,9 +72,13 @@ if [[ $container_base == *"registry.access.redhat.com/ubi9"* ]]; then
|
|||
FROM $container_base
|
||||
WORKDIR /app
|
||||
|
||||
# We install the Python 3.11 dev headers and build tools so that any
|
||||
# C‑extension wheels (e.g. polyleven, faiss‑cpu) can compile successfully.
|
||||
|
||||
RUN dnf -y update && dnf install -y iputils net-tools wget \
|
||||
vim-minimal python3.11 python3.11-pip python3.11-wheel \
|
||||
python3.11-setuptools && ln -s /bin/pip3.11 /bin/pip && ln -s /bin/python3.11 /bin/python && dnf clean all
|
||||
python3.11-setuptools python3.11-devel gcc make && \
|
||||
ln -s /bin/pip3.11 /bin/pip && ln -s /bin/python3.11 /bin/python && dnf clean all
|
||||
|
||||
ENV UV_SYSTEM_PYTHON=1
|
||||
RUN pip install uv
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue