mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-14 20:37:55 -05:00
docker: Fix permission issues in Dockerfile
Closes #12971 Closes #12970
This commit is contained in:
parent
352be5ba87
commit
88d598a049
1 changed files with 2 additions and 2 deletions
|
@ -76,14 +76,14 @@ RUN mkdir -p /var/hugo/bin /cache && \
|
||||||
# See https://github.com/gohugoio/hugo/issues/9810
|
# See https://github.com/gohugoio/hugo/issues/9810
|
||||||
runuser -u hugo -- git config --global core.quotepath false
|
runuser -u hugo -- git config --global core.quotepath false
|
||||||
|
|
||||||
|
USER hugo:hugo
|
||||||
VOLUME /project
|
VOLUME /project
|
||||||
WORKDIR /project
|
WORKDIR /project
|
||||||
USER hugo:hugo
|
|
||||||
ENV HUGO_CACHEDIR=/cache
|
ENV HUGO_CACHEDIR=/cache
|
||||||
ENV PATH="/var/hugo/bin:$PATH"
|
ENV PATH="/var/hugo/bin:$PATH"
|
||||||
|
|
||||||
COPY scripts/docker/entrypoint.sh /entrypoint.sh
|
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.
|
# Update PATH to reflect the new dependencies.
|
||||||
# For more complex setups, we should probably find a way to
|
# For more complex setups, we should probably find a way to
|
||||||
|
|
Loading…
Reference in a new issue