1
0
Fork 0

Reduce layers

master
dump_stack() 2023-05-10 11:20:07 +00:00
parent cbdef2936d
commit 31370b7bad
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC
1 changed files with 3 additions and 2 deletions

View File

@ -477,10 +477,11 @@ func generateBaseDockerImage(registry string, commands []config.DockerCommand,
d += "RUN sed -i 's;installonly_limit=;installonly_limit=100500;' /etc/yum.conf /etc/dnf/dnf.conf || true\n"
d += "RUN yum -y update\n"
d += "RUN yum -y groupinstall 'Development Tools'\n"
d += "RUN yum -y install linux-firmware grubby\n"
packages := "linux-firmware grubby"
if sk.DistroRelease <= "7" {
d += "RUN yum -y install libdtrace-ctf\n"
packages += " libdtrace-ctf"
}
d += fmt.Sprintf("RUN yum -y install %s\n", packages)
default:
err = fmt.Errorf("%s not yet supported", sk.DistroType.String())
return