luoyutianyang commited on
Commit
9f5e5bf
·
verified ·
1 Parent(s): 1c285fd

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -7
Dockerfile CHANGED
@@ -11,13 +11,9 @@ COPY . .
11
  RUN pacman -Syu --noconfirm && \
12
  pacman -S --noconfirm \
13
  nodejs npm cmake opencv icu gcc git base-devel && \
14
- npm install -g npm
15
-
16
- # 安装Node.js依赖
17
- RUN npm install express phin npmlog jimp axios sharp
18
-
19
- # 安装 opencv4nodejs,并禁用自动构建
20
- RUN npm install opencv-build && \
21
  npm install opencv4nodejs && \
22
  npm config set opencv4nodejs:customBuildFlags "" && \
23
  npm rebuild opencv4nodejs
 
11
  RUN pacman -Syu --noconfirm && \
12
  pacman -S --noconfirm \
13
  nodejs npm cmake opencv icu gcc git base-devel && \
14
+ npm install -g npm && \
15
+ npm install express phin npmlog jimp axios sharp && \
16
+ npm install opencv-build && \
 
 
 
 
17
  npm install opencv4nodejs && \
18
  npm config set opencv4nodejs:customBuildFlags "" && \
19
  npm rebuild opencv4nodejs