luoyutianyang commited on
Commit
cd6de25
·
verified ·
1 Parent(s): cf8de0e

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -5
Dockerfile CHANGED
@@ -7,10 +7,10 @@ WORKDIR /usr/src/app
7
  # 安装
8
  RUN npm install -g pnpm
9
  RUN npm install -g node-gyp
10
- RUN apt-get update && apt-get upgrade -y && apt-get install -y build-essential
11
- RUN apt-get update \
12
- && apt-get upgrade -y \
13
- && apt-get install -y build-essential python-is-python3
14
 
15
  # 复制package.json和package-lock.json到工作目录
16
  COPY package*.json ./
@@ -19,7 +19,6 @@ COPY package*.json ./
19
  RUN pnpm install
20
  RUN pnpm install opencv4nodejs
21
 
22
-
23
  # 构建
24
  ENV PATH="${PATH}:/usr/src/app/node_modules/.bin"
25
  RUN cd /usr/src/app/node_modules/opencv4nodejs && node-gyp configure && node-gyp build
 
7
  # 安装
8
  RUN npm install -g pnpm
9
  RUN npm install -g node-gyp
10
+ RUN apt-get update && apt-get upgrade -y && apt-get install -y build-essential python-is-python3
11
+
12
+ # 安装 opencv
13
+ RUN apt-get install -y libopencv-dev
14
 
15
  # 复制package.json和package-lock.json到工作目录
16
  COPY package*.json ./
 
19
  RUN pnpm install
20
  RUN pnpm install opencv4nodejs
21
 
 
22
  # 构建
23
  ENV PATH="${PATH}:/usr/src/app/node_modules/.bin"
24
  RUN cd /usr/src/app/node_modules/opencv4nodejs && node-gyp configure && node-gyp build