feat: disable network in containers during build
This commit is contained in:
parent
f33ff25708
commit
01b9c2e9f2
@ -155,6 +155,8 @@ func Build(flog zerolog.Logger, tmp string, ka Artifact,
|
|||||||
log.Fatal().Err(err).Msg("container creation failure")
|
log.Fatal().Err(err).Msg("container creation failure")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
c.Args = append(c.Args, "--network", "none")
|
||||||
|
|
||||||
output, err = c.Run(outdir, []string{
|
output, err = c.Run(outdir, []string{
|
||||||
buildCommand + " && chmod -R 777 /work",
|
buildCommand + " && chmod -R 777 /work",
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user