diff --git a/.github/workflows/build-docker-image.yml b/.github/workflows/build-docker-image.yml index d820379198..9680f41193 100644 --- a/.github/workflows/build-docker-image.yml +++ b/.github/workflows/build-docker-image.yml @@ -49,7 +49,7 @@ jobs: - name: Build Hugo site run: | # Build the site using the multi-platform Hugo image - docker run --rm -v $(pwd):/src hvishwanath/hugo:v0.123.7-ext-multiplatform \ + docker run --rm -v $(pwd):/src:z hvishwanath/hugo:v0.123.7-ext-multiplatform \ --minify \ --destination output diff --git a/Makefile b/Makefile index 226040c47b..b64e7edd71 100644 --- a/Makefile +++ b/Makefile @@ -29,14 +29,14 @@ hugo-base-multi-platform: buildx-setup # Build the static site using Docker build: docker pull $(DOCKER_IMAGE) - docker run --rm -v $(PWD):/src $(DOCKER_IMAGE) \ + docker run --rm -v $(PWD):/src:z $(DOCKER_IMAGE) \ --minify \ --destination $(OUTPUT_DIR) # Serve the site locally using Docker (development) serve: docker pull $(DOCKER_IMAGE) - docker run --rm -it -v $(PWD):/src -p 1313:1313 $(DOCKER_IMAGE) \ + docker run --rm -it -v $(PWD):/src:z -p 1313:1313 $(DOCKER_IMAGE) \ server \ --bind 0.0.0.0 \ --destination $(OUTPUT_DIR) \