Add Docker deployment configuration
Deploy Guidebook to GitHub Pages / build (push) Canceled after 0s
Deploy Guidebook to GitHub Pages / deploy (push) Canceled after 0s

This commit is contained in:
2026-10-16 17:17:23 +08:00
parent 0dcf5f4494
commit 88e0592be0
3 changed files with 30 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
FROM node:20-alpine AS build
WORKDIR /app
RUN corepack enable && corepack prepare pnpm@9.15.9 --activate
COPY package.json pnpm-lock.yaml ./
RUN pnpm install --frozen-lockfile
COPY . .
RUN pnpm docs:build
FROM nginx:1.27-alpine
COPY --from=build /app/docs/.vitepress/dist /usr/share/nginx/html
EXPOSE 80