panwang il y a 4 semaines
Parent
commit
eb50437044
1 fichiers modifiés avec 3 ajouts et 3 suppressions
  1. 3 3
      Dockerfile

+ 3 - 3
Dockerfile

@@ -1,4 +1,4 @@
-# 构建阶段
+# 使用docker环境对代码进行编译
 FROM registry.cn-hangzhou.aliyuncs.com/stuuudy/node:18-alpine as builder
 
 # 安装 pnpm
@@ -17,10 +17,10 @@ RUN pnpm install
 # 复制源代码
 COPY . .
 
-# 构建应用
+
 RUN yarn build
 
-# 运行阶段
+# 将编译完成后的代码打包成dokcer镜像
 FROM registry.cn-hangzhou.aliyuncs.com/stuuudy/node:18-alpine
 
 # 安装 PM2