From 4bc4ca738ba695f13051a12ebf3ca691dd01492b Mon Sep 17 00:00:00 2001 From: Mikhail Klementev Date: Thu, 6 Apr 2023 21:57:47 +0000 Subject: [PATCH] Typo --- kernel.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel.go b/kernel.go index a12bb0b..70693f9 100644 --- a/kernel.go +++ b/kernel.go @@ -348,7 +348,7 @@ func generateBaseDockerImage(registry string, commands []config.DockerCommand, } // Cache kernel package dependencies - d += "export PKGNAME=$(yum search kernel-devel --showduplicates | grep '^kernel-devel' | cut -d ' ' -f 1 | head -n 1); " + + d += "RUN export PKGNAME=$(yum search kernel-devel --showduplicates | grep '^kernel-devel' | cut -d ' ' -f 1 | head -n 1); " + "yum -y install $PKGNAME $(echo $PKGNAME | sed 's/-devel//'); " + "yum -y remove $PKGNAME $(echo $PKGNAME | sed 's/-devel//')\n" default: