Run Hugo as user "hugo" in local dev container

When previewing locally using "make container-serve", run the Hugo
process as user "hugo" inside that container.
This commit is contained in:
Tim Bannister
2020-10-03 04:10:33 +01:00
parent a4d016e1f9
commit bb04227f7b
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