default to network=host to avoid frequent dns issues on some platform

This commit is contained in:
Lance Vick 2024-01-16 17:16:32 -08:00
parent 79b2160578
commit 6ccd002aaa
Signed by: lrvick
GPG Key ID: 8E47A1EC35A1551D
1 changed files with 1 additions and 0 deletions

View File

@ -32,6 +32,7 @@ define build
-t $(REGISTRY)/$(NAME):$(VERSION) \
--build-arg REGISTRY=$(REGISTRY) \
--platform $(PLATFORM) \
--network=host \
--progress=plain \
$(if $(filter latest,$(VERSION)),,--build-arg VERSION=$(VERSION)) \
--target $(TARGET) \