luoyutianyang commited on
Commit
d5ba25f
·
verified ·
1 Parent(s): 1ad596d

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -1
Dockerfile CHANGED
@@ -20,7 +20,10 @@ RUN cd /usr/lib/node_modules && \
20
  git clone https://github.com/justadudewhohacks/opencv4nodejs.git && \
21
  cd opencv4nodejs && \
22
  npm -g i nan native-node-utils npmlog && \
23
- node install/install.js
 
 
 
24
 
25
  # 暴露端口
26
  EXPOSE 7860
 
20
  git clone https://github.com/justadudewhohacks/opencv4nodejs.git && \
21
  cd opencv4nodejs && \
22
  npm -g i nan native-node-utils npmlog && \
23
+ npm install opencv-build && \
24
+ npm install opencv4nodejs && \
25
+ npm config set opencv4nodejs:customBuildFlags "" && \
26
+ npm rebuild opencv4nodejs
27
 
28
  # 暴露端口
29
  EXPOSE 7860