Merge pull request #24353 from sftim/20201002_container_run_hugo_as_hugo

Run Hugo as user "hugo" in local dev container
This commit is contained in:
Kubernetes Prow Robot
2020-10-03 01:49:05 -07:00
committed by GitHub
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -29,4 +29,6 @@ RUN mkdir -p /usr/local/src && \
WORKDIR /src
USER hugo:hugo
EXPOSE 1313
+1 -1
View File
@@ -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