luoyutianyang commited on
Commit
a66362a
·
verified ·
1 Parent(s): 180b68c

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -0
Dockerfile CHANGED
@@ -12,6 +12,11 @@ COPY package*.json ./
12
 
13
  # 安装项目依赖
14
  RUN pnpm install
 
 
 
 
 
15
 
16
  # 将当前目录中的所有文件复制到工作目录中
17
  COPY . .
 
12
 
13
  # 安装项目依赖
14
  RUN pnpm install
15
+ RUN pnpm install opencv
16
+ RUN pnpm install opencv4nodejs
17
+
18
+ # 构建
19
+ RUN cd ./src/app/node_modules/opencv4nodejs && node-gyp configure && node-gyp build
20
 
21
  # 将当前目录中的所有文件复制到工作目录中
22
  COPY . .