1
0
Fork 0

Install libseccomp-dev only for 14.04 and later

timestamps
dump_stack() 2019-08-20 07:06:08 +00:00
parent a08861cc19
commit 86ad71f230
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC
1 changed files with 4 additions and 1 deletions

View File

@ -106,7 +106,10 @@ func generateBaseDockerImage(sk config.KernelMask) (err error) {
d += "ENV DEBIAN_FRONTEND=noninteractive\n"
d += "RUN apt-get update\n"
d += "RUN apt-get install -y build-essential libelf-dev\n"
d += "RUN apt-get install -y wget git libseccomp-dev\n"
d += "RUN apt-get install -y wget git\n"
if sk.DistroRelease >= "14.04" {
d += "RUN apt-get install -y libseccomp-dev\n"
}
d += "RUN mkdir /lib/modules\n"
default:
err = fmt.Errorf("%s not yet supported", sk.DistroType.String())