From 26aa0d7e9b75d27b8982a7954659d8bce75b4e00 Mon Sep 17 00:00:00 2001 From: Radoslaw Smigielski Date: Wed, 8 Apr 2020 22:15:28 +0100 Subject: [PATCH] Make build of kubernetes-hugo image more reliable Switch from default Docker bridge network to host network. --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 56359bd32b..75d37f767d 100644 --- a/Makefile +++ b/Makefile @@ -36,7 +36,10 @@ serve: ## Boot the development server. hugo server --buildFuture docker-image: - $(DOCKER) build . --tag $(DOCKER_IMAGE) --build-arg HUGO_VERSION=$(HUGO_VERSION) + $(DOCKER) build . \ + --network=host \ + --tag $(DOCKER_IMAGE) \ + --build-arg HUGO_VERSION=$(HUGO_VERSION) docker-build: $(DOCKER_RUN) $(DOCKER_IMAGE) hugo