File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -8,17 +8,15 @@ ARG ENABLE_RT=''
88USER root
99
1010# kernel packages needed to build drivers / kmods
11- RUN dnf config-manager --best --setopt=install_weak_deps=False --save
12-
13- RUN dnf -y install \
11+ RUN microdnf -y install \
1412 kernel-devel${KERNEL_VERSION:+-}${KERNEL_VERSION} \
1513 kernel-devel-matched${KERNEL_VERSION:+-}${KERNEL_VERSION} \
1614 kernel-headers${KERNEL_VERSION:+-}${KERNEL_VERSION} \
1715 kernel-modules${KERNEL_VERSION:+-}${KERNEL_VERSION} \
1816 kernel-modules-extra${KERNEL_VERSION:+-}${KERNEL_VERSION} \
1917 && export INSTALLED_KERNEL=$(rpm -q --qf "%{VERSION}-%{RELEASE}.%{ARCH}" kernel-core-${KERNEL_VERSION}) \
2018 && export GCC_VERSION=$(cat /lib/modules/${INSTALLED_KERNEL}/config | grep -Eo "gcc \( GCC\) ([0-9\. ]+)" | grep -Eo "([0-9\. ]+)" ) \
21- && dnf -y install \
19+ && microdnf -y install \
2220 binutils \
2321 diffutils \
2422 elfutils-libelf-devel \
@@ -34,7 +32,7 @@ RUN dnf -y install \
3432 pinentry \
3533 rpm-build \
3634 xz \
37- && dnf -y clean all \
35+ && microdnf -y clean all \
3836 && rm -rf /var/cache/yum \
3937 && useradd -u 1001 -m -s /bin/bash builder
4038
Original file line number Diff line number Diff line change 1- BASEIMAGE=registry.redhat.io/ubi9/ubi:9.5
1+ BASEIMAGE=registry.redhat.io/ubi9/ubi-minimal :9.5-1739420147
22KERNEL_VERSION=5.14.0-503.21.1.el9_5
You can’t perform that action at this time.
0 commit comments