Skip to content

Commit 2302192

Browse files
committed
Root
1 parent 3a35643 commit 2302192

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

Dockerfile

+2-6
Original file line numberDiff line numberDiff line change
@@ -71,15 +71,11 @@ RUN apk add --no-cache \
7171
npm
7272

7373
RUN mkdir -p /var/hugo/bin /cache && \
74-
addgroup -Sg 1001 hugo && \
75-
adduser -Sg hugo -u 1001 -h /var/hugo hugo && \
76-
chown -R hugo: /var/hugo /cache /project && \
7774
# For the Hugo's Git integration to work.
78-
runuser -u hugo -- git config --global --add safe.directory /project && \
75+
git config --global --add safe.directory /project && \
7976
# See https://github.com/gohugoio/hugo/issues/9810
80-
runuser -u hugo -- git config --global core.quotepath false
77+
git config --global core.quotepath false
8178

82-
USER hugo:hugo
8379
ENV HUGO_CACHEDIR=/cache
8480
ENV PATH="/var/hugo/bin:$PATH"
8581

0 commit comments

Comments
 (0)