From 2d0a25da57d201ea76d2cbdc30f6d33cd76c95f8 Mon Sep 17 00:00:00 2001 From: crupest Date: Mon, 28 Nov 2022 19:02:24 +0800 Subject: Move blog to hugo. --- docker/crupest-nginx/Dockerfile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'docker/crupest-nginx/Dockerfile') diff --git a/docker/crupest-nginx/Dockerfile b/docker/crupest-nginx/Dockerfile index e5e4755..9b9c7b7 100644 --- a/docker/crupest-nginx/Dockerfile +++ b/docker/crupest-nginx/Dockerfile @@ -1,8 +1,14 @@ -FROM node:latest AS build +FROM node:latest AS build-www RUN npm install -g pnpm COPY sites/www /sites/www WORKDIR /sites/www RUN pnpm install --frozen-lockfile && pnpm run build +FROM klakegg/hugo AS build-blog +COPY sites/blog /hugo +WORKDIR /hugo +RUN hugo + FROM nginx:latest -COPY --from=build /sites/www/dist /srv/www +COPY --from=build-www /sites/www/dist /srv/www +COPY --from=build-blog /hugo/public /srv/blog -- cgit v1.2.3