luoyutianyang commited on
Commit
20de1d7
·
verified ·
1 Parent(s): 05d4209

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -1
Dockerfile CHANGED
@@ -12,7 +12,12 @@ RUN pacman -Sy --noconfirm
12
  RUN pacman -S nodejs npm cmake opencv icu gcc --noconfirm
13
 
14
  # 安装Node.js依赖
15
- RUN npm install express are-we-there-yet gauge npmlog opencv4nodejs jimp axios sharp
 
 
 
 
 
16
 
17
  # 暴露端口
18
  EXPOSE 7860
 
12
  RUN pacman -S nodejs npm cmake opencv icu gcc --noconfirm
13
 
14
  # 安装Node.js依赖
15
+ RUN npm install express phin npmlog jimp axios sharp
16
+
17
+ # 安装 opencv4nodejs,并禁用自动构建
18
+ RUN npm install opencv4nodejs
19
+ RUN npm install opencv-build
20
+ RUN npm run opencv4nodejs:custombuild
21
 
22
  # 暴露端口
23
  EXPOSE 7860