Skip to content

Commit

Permalink
Root
Browse files Browse the repository at this point in the history
  • Loading branch information
bep committed Oct 30, 2024
1 parent 3a35643 commit 2302192
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -71,15 +71,11 @@ RUN apk add --no-cache \
npm

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

USER hugo:hugo
ENV HUGO_CACHEDIR=/cache
ENV PATH="/var/hugo/bin:$PATH"

Expand Down

0 comments on commit 2302192

Please sign in to comment.