siemonster :: force to use NetworkMode=host on building Apps

This commit is contained in:
Harduino
2020-08-07 10:17:23 +03:00
parent b4ed7f87fc
commit f05077274b
2 changed files with 6 additions and 3 deletions
+2
View File
@@ -183,6 +183,7 @@ func buildImageMemory(fs billy.Filesystem, tags []string, dockerfileFolder strin
Remove: true,
Tags: tags,
BuildArgs: map[string]*string{},
NetworkMode: "host",
}
httpProxy := os.Getenv("HTTP_PROXY")
@@ -245,6 +246,7 @@ func buildImage(tags []string, dockerfileFolder string) error {
Remove: true,
Tags: tags,
BuildArgs: map[string]*string{},
NetworkMode: "host",
}
httpProxy := os.Getenv("HTTP_PROXY")