Skip to content

Commit d8392cc

Browse files
committed
Use --destination /tmp/public for Docker build
1 parent 1b1a31c commit d8392cc

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

Makefile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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
114112
container-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
120118
container-serve: module-check ## Boot the development server using container.

0 commit comments

Comments
 (0)