Skip to content

Instantly share code, notes, and snippets.

@lmb
lmb / Dockerfile
Created January 10, 2024 15:51
Build RHEL 8 kernel via rocky linux container
FROM rockylinux:8 AS builder
RUN dnf install -y 'dnf-command(builddep)' 'dnf-command(config-manager)'
RUN dnf config-manager --set-enabled powertools
RUN dnf builddep -y kernel
FROM builder
WORKDIR /tmp
RUN dnf download --source kernel && rpm -ivh kernel*.src.rpm