luoyutianyang commited on
Commit
d02b17b
·
verified ·
1 Parent(s): 3b53326

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -5
Dockerfile CHANGED
@@ -4,13 +4,11 @@ FROM justadudewhohacks/opencv-nodejs
4
  # 设置工作目录
5
  WORKDIR /usr/src/app
6
 
7
- # 安装Git和CMake顺便更新nodejs
8
  RUN apt-get update && \
9
  apt-get install -y git cmake && \
10
- apt upgrade -y nodejs
11
-
12
- # 更新npm
13
- RUN npm install -g npm
14
 
15
  # 安装OpenCV
16
  RUN apt-get install -y libopencv-dev
 
4
  # 设置工作目录
5
  WORKDIR /usr/src/app
6
 
7
+ # 安装Git和CMake顺便更新nodejs和npm
8
  RUN apt-get update && \
9
  apt-get install -y git cmake && \
10
+ apt install nodejs && \
11
+ apt install npm
 
 
12
 
13
  # 安装OpenCV
14
  RUN apt-get install -y libopencv-dev