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:
Alexey Rybak 2025-04-18 00:49:10 -07:00 committed by GitHub
parent 4c6b7005fa
commit e72b1076ca
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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
# Cextension wheels (e.g. polyleven, faisscpu) 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