1
0

feat: disable network in containers during build

This commit is contained in:
dump_stack() 2024-10-05 16:50:01 +00:00
parent f33ff25708
commit 01b9c2e9f2
Signed by: dump_stack
GPG Key ID: C9905BA72B5E02BB

View File

@ -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",
}) })