File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 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
5959
6060COPY --from=build /usr/bin/hugo /usr/bin/hugo
6161
62+ VOLUME /project
63+ WORKDIR /project
64+
6265# libc6-compat are required for extended libraries (libsass, libwebp).
6366RUN apk add --no-cache \
6467 libc6-compat \
@@ -70,15 +73,13 @@ RUN apk add --no-cache \
7073RUN mkdir -p /var/hugo/bin /cache && \
7174 addgroup -Sg 1000 hugo && \
7275 adduser -Sg hugo -u 1000 -h /var/hugo hugo && \
73- chown -R hugo: /var/hugo /cache && \
76+ chown -R hugo: /var/hugo /cache /project \
7477 # For the Hugo's Git integration to work.
7578 runuser -u hugo -- git config --global --add safe.directory /project && \
7679 # See https://github.com/gohugoio/hugo/issues/9810
7780 runuser -u hugo -- git config --global core.quotepath false
7881
7982USER hugo:hugo
80- VOLUME /project
81- WORKDIR /project
8283ENV HUGO_CACHEDIR=/cache
8384ENV PATH="/var/hugo/bin:$PATH"
8485
You can’t perform that action at this time.
0 commit comments