luoyutianyang commited on
Commit
04b7eb2
·
verified ·
1 Parent(s): de6f786

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -2
Dockerfile CHANGED
@@ -4,15 +4,17 @@ FROM urielch/opencv-nodejs
4
  # 更新 Node.js 到最新的 20 版本
5
  RUN npm install -g n && n 20.3.0
6
 
 
 
7
  # 创建工作目录
8
  WORKDIR /app
9
  COPY . .
10
 
11
  # 安装项目依赖
12
- RUN npm install
13
 
14
  # 安装 serve-static
15
- RUN npm install serve-static
16
 
17
  # 暴露端口
18
  EXPOSE 7860
 
4
  # 更新 Node.js 到最新的 20 版本
5
  RUN npm install -g n && n 20.3.0
6
 
7
+ RUN npm install -g pnpm
8
+
9
  # 创建工作目录
10
  WORKDIR /app
11
  COPY . .
12
 
13
  # 安装项目依赖
14
+ RUN pnpm install
15
 
16
  # 安装 serve-static
17
+ RUN pnpm install serve-static
18
 
19
  # 暴露端口
20
  EXPOSE 7860