Skip to content

Commit

Permalink
docker: Fix /var/hugo being owned by root
Browse files Browse the repository at this point in the history
The use of COPY --link incorrectly caused the /var/hugo directory to be
owned by root, and not the hugo:hugo user.

Signed-off-by: David Karlsson <[email protected]>
  • Loading branch information
dvdksn committed Oct 21, 2024
1 parent 352be5b commit 6eb9afd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ 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 6eb9afd

Please sign in to comment.