From b43471676ad10a35f8eda86ffedc99b871b6ea59 Mon Sep 17 00:00:00 2001 From: crupest Date: Mon, 28 Nov 2022 20:02:15 +0800 Subject: New way to deploy blog. --- docker/crupest-nginx/Dockerfile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'docker/crupest-nginx') diff --git a/docker/crupest-nginx/Dockerfile b/docker/crupest-nginx/Dockerfile index 532a76b..ea55765 100644 --- a/docker/crupest-nginx/Dockerfile +++ b/docker/crupest-nginx/Dockerfile @@ -5,10 +5,13 @@ WORKDIR /sites/www RUN pnpm install --frozen-lockfile && pnpm run build FROM klakegg/hugo:ext-alpine AS build-blog -COPY sites/blog /hugo -WORKDIR /hugo +# install git +RUN apk add --no-cache git +WORKDIR / +RUN git clone https://github.com/crupest/blog --recurse-submodules +WORKDIR /blog RUN hugo FROM nginx:latest COPY --from=build-www /sites/www/dist /srv/www -COPY --from=build-blog /hugo/public /srv/blog +COPY --from=build-blog /blog/public /srv/blog -- cgit v1.2.3