diff --git a/Dockerfile b/Dockerfile index 3e3335076c..4ceae22959 100644 --- a/Dockerfile +++ b/Dockerfile @@ -29,4 +29,6 @@ RUN mkdir -p /usr/local/src && \ WORKDIR /src +USER hugo:hugo + EXPOSE 1313 diff --git a/Makefile b/Makefile index 56ec8410f4..523775cd17 100644 --- a/Makefile +++ b/Makefile @@ -68,7 +68,7 @@ container-build: module-check $(CONTAINER_RUN) $(CONTAINER_IMAGE) hugo --minify container-serve: module-check - $(CONTAINER_RUN) --mount type=tmpfs,destination=/src/resources,tmpfs-mode=0755 -p 1313:1313 $(CONTAINER_IMAGE) hugo server --buildFuture --bind 0.0.0.0 + $(CONTAINER_RUN) --mount type=tmpfs,destination=/src/resources,tmpfs-mode=0777 -p 1313:1313 $(CONTAINER_IMAGE) hugo server --buildFuture --bind 0.0.0.0 test-examples: scripts/test_examples.sh install