@@ -22,8 +22,6 @@ CONTAINER_HUGO_MOUNTS = \
2222 --mount type=bind,source=$(CURDIR ) /data,target=/src/data,readonly \
2323 --mount type=bind,source=$(CURDIR ) /i18n,target=/src/i18n,readonly \
2424 --mount type=bind,source=$(CURDIR ) /layouts,target=/src/layouts,readonly \
25- --mount type=tmpfs,destination=/src/public,tmpfs-mode=01777 \
26- --mount type=tmpfs,destination=/src/resources,tmpfs-mode=01777 \
2725 --mount type=bind,source=$(CURDIR ) /static,target=/src/static,readonly \
2826 --mount type=tmpfs,destination=/tmp,tmpfs-mode=01777 \
2927 --mount type=bind,source=$(CURDIR ) /hugo.toml,target=/src/hugo.toml,readonly
@@ -114,7 +112,7 @@ docker-push: ## Build a multi-architecture image and push that into the registry
114112container-build : module-check
115113 mkdir -p public
116114 $(CONTAINER_RUN_TTY ) $(CONTAINER_HUGO_MOUNTS ) $(CONTAINER_IMAGE ) \
117- hugo --cleanDestinationDir --buildDrafts --buildFuture --environment preview --noBuildLock
115+ hugo --destination /tmp/public -- cleanDestinationDir --buildDrafts --buildFuture --environment preview --noBuildLock
118116
119117# no build lock to allow for read-only mounts
120118container-serve : module-check # # Boot the development server using container.
0 commit comments