diff options
author | crupest <crupest@outlook.com> | 2022-11-28 19:02:24 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-11-28 19:02:24 +0800 |
commit | 2df204cebfc31b8feee3b36c6cf7cfb48efe22a1 (patch) | |
tree | 72d19c0fa7797f286c416b6782642c75e1ef19d4 /docker | |
parent | e45f657b3b14309dc901661881d3ad4152af9675 (diff) | |
download | crupest-2df204cebfc31b8feee3b36c6cf7cfb48efe22a1.tar.gz crupest-2df204cebfc31b8feee3b36c6cf7cfb48efe22a1.tar.bz2 crupest-2df204cebfc31b8feee3b36c6cf7cfb48efe22a1.zip |
Move blog to hugo.
Diffstat (limited to 'docker')
-rw-r--r-- | docker/crupest-nginx/Dockerfile | 10 | ||||
m--------- | docker/crupest-nginx/sites/blog | 0 |
2 files changed, 8 insertions, 2 deletions
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 diff --git a/docker/crupest-nginx/sites/blog b/docker/crupest-nginx/sites/blog new file mode 160000 +Subproject 420d916ab73c6b51c0cbcccce8d70824ac18147 |