feat: 增加生产环境容器编排

This commit is contained in:
2026-07-10 11:50:45 +08:00
parent 9fb3dad5bd
commit fb39c9c543
8 changed files with 196 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
FROM node:22-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build
FROM nginx:1.27-alpine
COPY nginx.prod.conf /etc/nginx/conf.d/default.conf
COPY --from=builder /app/dist /usr/share/nginx/html
EXPOSE 80