From 0fe809aee7412f091a472048795511fa821dfc79 Mon Sep 17 00:00:00 2001
From: Mikhail Klementev <root@dumpstack.io>
Date: Sat, 5 Oct 2024 16:50:01 +0000
Subject: [PATCH] feat: disable network in containers during build

---
 container/container.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/container/container.go b/container/container.go
index 1a7381b..d6451dd 100644
--- a/container/container.go
+++ b/container/container.go
@@ -392,7 +392,7 @@ func (c Container) Run(workdir string, cmds []string) (out string, err error) {
 		Logger()
 
 	var args []string
-	args = append(args, "run", "--rm")
+	args = append(args, "run", "--network", "none", "--rm")
 	args = append(args, c.Args...)
 	if workdir != "" {
 		args = append(args, "-v", workdir+":/work")