aboutsummaryrefslogtreecommitdiff
path: root/docker/crupest-nginx
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
commitc3b82c6fc4c5c6acaa8720f88c07a2377c648fc5 (patch)
tree3fe5a5c1a98c2643de493dbb7d001d7545e0a1d2 /docker/crupest-nginx
parentc87ba8249755bedd6593369696f79273e55f9050 (diff)
downloadcrupest-c3b82c6fc4c5c6acaa8720f88c07a2377c648fc5.tar.gz
crupest-c3b82c6fc4c5c6acaa8720f88c07a2377c648fc5.tar.bz2
crupest-c3b82c6fc4c5c6acaa8720f88c07a2377c648fc5.zip
Auto update submodule in blog.
Diffstat (limited to 'docker/crupest-nginx')
-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