Skip to content

Commit 00a2f38

Browse files
authored
Merge pull request #21114 from sftim/20200521_docker_serve_use_tmpfs
Serve rendered content from tmpfs for local dev
2 parents 685e54d + 64e9ea7 commit 00a2f38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ docker-build:
4545
$(DOCKER_RUN) $(DOCKER_IMAGE) hugo
4646

4747
docker-serve:
48-
$(DOCKER_RUN) -p 1313:1313 $(DOCKER_IMAGE) hugo server --buildFuture --bind 0.0.0.0
48+
$(DOCKER_RUN) --mount type=tmpfs,destination=/src/resources,tmpfs-mode=0755 -p 1313:1313 $(DOCKER_IMAGE) hugo server --buildFuture --bind 0.0.0.0
4949

5050
test-examples:
5151
scripts/test_examples.sh install

0 commit comments

Comments
 (0)