From c3b82c6fc4c5c6acaa8720f88c07a2377c648fc5 Mon Sep 17 00:00:00 2001 From: crupest Date: Mon, 28 Nov 2022 19:11:47 +0800 Subject: Auto update submodule in blog. --- docker/crupest-nginx/Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'docker/crupest-nginx') 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 -- cgit v1.2.3