论坛,聊天室前后端对接

Change-Id: I90740329ab40dc050e8a791a382ab187900d673a
diff --git a/Dockerfile b/Dockerfile
index 20630b6..af607d2 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,18 +1,15 @@
 # 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