1
0
Fork 0

Use headers package

master
dump_stack() 2023-04-06 20:10:07 +00:00
parent 8aed31e41b
commit 5b444a3193
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC
1 changed files with 1 additions and 1 deletions

View File

@ -306,7 +306,7 @@ func generateBaseDockerImage(registry string, commands []config.DockerCommand,
d += "RUN apt-get install -y build-essential libelf-dev\n"
d += "RUN apt-get install -y wget git\n"
// Install a single kernel to ensure all dependencies are cached
d += "RUN apt-get install -y $(apt-cache search --names-only '^linux-image-[0-9\\.\\-]*-generic' | awk '{ print $1 }' | head -n 1)\n"
d += "RUN apt-get install -y $(apt-cache search --names-only '^linux-headers-[0-9\\.\\-]*-generic' | awk '{ print $1 }' | head -n 1)\n"
if sk.DistroRelease >= "14.04" {
d += "RUN apt-get install -y libseccomp-dev\n"
}