Make build of kubernetes-hugo image more reliable

Switch from default Docker bridge network to host network.
This commit is contained in:
Radoslaw Smigielski
2020-04-08 22:15:28 +01:00
parent 5f622eb183
commit 26aa0d7e9b
+4 -1
View File
@@ -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