Commit 19e4dc0 1 parent 3f96325 commit 19e4dc0 Copy full SHA for 19e4dc0
File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -59,6 +59,9 @@ FROM gorun AS final
59
59
60
60
COPY --from=build /usr/bin/hugo /usr/bin/hugo
61
61
62
+ VOLUME /project
63
+ WORKDIR /project
64
+
62
65
# libc6-compat are required for extended libraries (libsass, libwebp).
63
66
RUN apk add --no-cache \
64
67
libc6-compat \
@@ -70,15 +73,13 @@ RUN apk add --no-cache \
70
73
RUN mkdir -p /var/hugo/bin /cache && \
71
74
addgroup -Sg 1000 hugo && \
72
75
adduser -Sg hugo -u 1000 -h /var/hugo hugo && \
73
- chown -R hugo: /var/hugo /cache && \
76
+ chown -R hugo: /var/hugo /cache /project \
74
77
# For the Hugo's Git integration to work.
75
78
runuser -u hugo -- git config --global --add safe.directory /project && \
76
79
# See https://github.com/gohugoio/hugo/issues/9810
77
80
runuser -u hugo -- git config --global core.quotepath false
78
81
79
82
USER hugo:hugo
80
- VOLUME /project
81
- WORKDIR /project
82
83
ENV HUGO_CACHEDIR=/cache
83
84
ENV PATH="/var/hugo/bin:$PATH"
84
85
You can’t perform that action at this time.
0 commit comments