aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-11-28 19:11:47 +0800
committercrupest <crupest@outlook.com>2022-11-28 19:11:47 +0800
commitb1cdcb66f8f6ab0ce1e6a51d395a1c89f7b78202 (patch)
tree3fe5a5c1a98c2643de493dbb7d001d7545e0a1d2
parenta9c51c308f8500152f49081e89c66ce35ba00405 (diff)
downloadcrupest-b1cdcb66f8f6ab0ce1e6a51d395a1c89f7b78202.tar.gz
crupest-b1cdcb66f8f6ab0ce1e6a51d395a1c89f7b78202.tar.bz2
crupest-b1cdcb66f8f6ab0ce1e6a51d395a1c89f7b78202.zip
Auto update submodule in blog.
-rw-r--r--docker/crupest-nginx/Dockerfile5
1 files changed, 4 insertions, 1 deletions
diff --git a/docker/crupest-nginx/Dockerfile b/docker/crupest-nginx/Dockerfile
index 9b9c7b7..074e8cc 100644
--- a/docker/crupest-nginx/Dockerfile
+++ b/docker/crupest-nginx/Dockerfile
@@ -4,7 +4,10 @@ COPY sites/www /sites/www
WORKDIR /sites/www
RUN pnpm install --frozen-lockfile && pnpm run build
-FROM klakegg/hugo AS build-blog
+FROM klakegg/ext-alpine AS build-blog
+# install git
+RUN apk add --no-cache git
+RUN git submodule update --init --recursive
COPY sites/blog /hugo
WORKDIR /hugo
RUN hugo