aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDavid Karlsson <[email protected]>2024-10-21 15:28:36 +0200
committerGitHub <[email protected]>2024-10-21 15:28:36 +0200
commit88d598a0493882f0361b007980569814c0be2a77 (patch)
tree854379fc1df9b24e6d2ba6ae60c7a7a20738a2c8
parent352be5ba8702017997587b3b99c42e66857b0627 (diff)
downloadhugo-88d598a0493882f0361b007980569814c0be2a77.tar.gz
hugo-88d598a0493882f0361b007980569814c0be2a77.zip
docker: Fix permission issues in Dockerfile
Closes #12971 Closes #12970
-rwxr-xr-xDockerfile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Dockerfile b/Dockerfile
index 01e82dbf4..65c4dbfb9 100755
--- a/Dockerfile
+++ b/Dockerfile
@@ -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