Skip to content

Commit d8ff869

Browse files
committed
fix(build): Use public UBI repos to fix build failures
Modify the Containerfile's dnf command to use the public, subscription-free UBI repositories. This prevents build failures on non-RHEL hosts that lack full RHEL entitlements. Signed-off-by: Eran Cohen <[email protected]>
1 parent 053d49f commit d8ff869

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Containerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ WORKDIR /app-root
1414
# Install gcc - required by polyleven python package on aarch64
1515
# (dependency of autoevals, no pre-built binary wheels for linux on aarch64)
1616
USER root
17-
RUN dnf install -y --nodocs --setopt=keepcache=0 --setopt=tsflags=nodocs gcc
17+
RUN dnf --disablerepo="*" --enablerepo="ubi-9-appstream-rpms" --enablerepo="ubi-9-baseos-rpms" install -y --nodocs --setopt=keepcache=0 --setopt=tsflags=nodocs gcc
1818

1919
# Install uv package manager
2020
RUN pip3.12 install "uv==0.8.11"
@@ -62,4 +62,4 @@ ENTRYPOINT ["python3.12", "src/lightspeed_stack.py"]
6262
LABEL vendor="Red Hat, Inc."
6363

6464
# no-root user is checked in Konflux
65-
USER 1001
65+
USER 1001

0 commit comments

Comments
 (0)