Browse Source

📦 build(docker): fix build command in Dockerfile

- 添加RUN指令确保pnpm build在容器构建阶段执行
- 解决构建步骤未正确执行的问题
yourname 1 month ago
parent
commit
91aeb5a2c4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Dockerfile

+ 1 - 1
Dockerfile

@@ -22,7 +22,7 @@ COPY . .
 
 
 # 构建 web 应用
-pnpm run build
+RUN pnpm run build
 
 # 暴露端口(根据实际需要调整)
 EXPOSE 8080