1
0

Install libseccomp-dev only for 14.04 and later

This commit is contained in:
dump_stack() 2019-08-20 07:06:08 +00:00
parent a08861cc19
commit 86ad71f230
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

View File

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