Skip to content

Commit

Permalink
docker: Fix permission issues in Dockerfile
Browse files Browse the repository at this point in the history
Closes #12971
Closes #12970
  • Loading branch information
dvdksn authored Oct 21, 2024
1 parent 352be5b commit 88d598a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,14 @@ RUN mkdir -p /var/hugo/bin /cache && \
# See https://github.com/gohugoio/hugo/issues/9810
runuser -u hugo -- git config --global core.quotepath false

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

COPY scripts/docker/entrypoint.sh /entrypoint.sh
COPY --link --from=dart-sass /out/dart-sass /var/hugo/bin/dart-sass
COPY --from=dart-sass /out/dart-sass /var/hugo/bin/dart-sass

# Update PATH to reflect the new dependencies.
# For more complex setups, we should probably find a way to
Expand Down

0 comments on commit 88d598a

Please sign in to comment.