Skip to content

Commit 88d598a

Browse files
authored
docker: Fix permission issues in Dockerfile
Closes #12971 Closes #12970
1 parent 352be5b commit 88d598a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,14 +76,14 @@ RUN mkdir -p /var/hugo/bin /cache && \
7676
# See https://github.com/gohugoio/hugo/issues/9810
7777
runuser -u hugo -- git config --global core.quotepath false
7878

79+
USER hugo:hugo
7980
VOLUME /project
8081
WORKDIR /project
81-
USER hugo:hugo
8282
ENV HUGO_CACHEDIR=/cache
8383
ENV PATH="/var/hugo/bin:$PATH"
8484

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

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

0 commit comments

Comments
 (0)