From 6ccd002aaa5010603eb889885b1d6ebc5151d84c Mon Sep 17 00:00:00 2001 From: "Lance R. Vick" Date: Tue, 16 Jan 2024 17:16:32 -0800 Subject: [PATCH] default to network=host to avoid frequent dns issues on some platform --- src/macros.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/src/macros.mk b/src/macros.mk index 3de9adc..8836dc6 100644 --- a/src/macros.mk +++ b/src/macros.mk @@ -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) \