feat: add docker build for static site

This commit is contained in:
liumangmang
2026-03-26 16:45:03 +08:00
parent 38a7c7956e
commit 7238aa9ca5
2 changed files with 18 additions and 0 deletions

13
Dockerfile Normal file
View File

@@ -0,0 +1,13 @@
FROM node:20-alpine AS build
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm ci
COPY . .
RUN npm run docs:build
FROM nginx:1.25-alpine
COPY --from=build /app/src/.vuepress/dist /usr/share/nginx/html