Install libseccomp-dev only for 14.04 and later
This commit is contained in:
parent
a08861cc19
commit
86ad71f230
@ -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())
|
||||||
|
Loading…
Reference in New Issue
Block a user