dockefile提交

Change-Id: I1f0993c2784dce96dcb75d0a41c3904b5dc34c53
diff --git a/Dockerfile b/Dockerfile
index af607d2..20630b6 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,15 +1,18 @@
 # Build stage

-#FROM registry.cn-hangzhou.aliyuncs.com/library/node:18-alpine as build-stage

 FROM node:18-alpine AS build

 WORKDIR /app

 COPY package*.json ./

 RUN npm install

-COPY .. .

+COPY . .

 RUN npm run build

 

 # Production stage

-#FROM registry.cn-hangzhou.aliyuncs.com/library/nginx:stable-alpine as production-stage

 FROM nginx:stable-alpine AS base

+# 复制构建好的前端文件

 COPY --from=build /app/dist /usr/share/nginx/html

+

+# 关键:复制自定义的 nginx 配置文件

+COPY nginx.conf /etc/nginx/conf.d/default.conf

+

 EXPOSE 80

-CMD ["nginx", "-g", "daemon off;"] 
\ No newline at end of file
+CMD ["nginx", "-g", "daemon off;"]
\ No newline at end of file