]> git.maquefel.me Git - brevno-suite/hugo/commitdiff
docker: Fix permission issues in Dockerfile
authorDavid Karlsson <35727626+dvdksn@users.noreply.github.com>
Mon, 21 Oct 2024 13:28:36 +0000 (15:28 +0200)
committerGitHub <noreply@github.com>
Mon, 21 Oct 2024 13:28:36 +0000 (15:28 +0200)
Closes #12971
Closes #12970

Dockerfile

index 01e82dbf49a5efc21ffb7131b2ec967e8c8d7c38..65c4dbfb96faa8e34a2782559257e6410ade7c8b 100755 (executable)
@@ -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