blob: 48ad7b17b2a81e1b144afe5fa1f917f45878b54a [file] [log] [blame]
20815951548db5f2a2025-06-09 23:58:33 +08001# Build stage
2#FROM registry.cn-hangzhou.aliyuncs.com/library/node:18-alpine as build-stage
3FROM node:18-alpine AS build
4WORKDIR /app
5COPY package*.json ./
6RUN npm install
7COPY .. .
8RUN npm run build
9
10# Production stage
11#FROM registry.cn-hangzhou.aliyuncs.com/library/nginx:stable-alpine as production-stage
12FROM nginx:stable-alpine AS base
13COPY --from=build /app/dist /usr/share/nginx/html
14EXPOSE 80
15CMD ["nginx", "-g", "daemon off;"]