luoyutianyang commited on
Commit
ac286bb
·
verified ·
1 Parent(s): c8b0821

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -9
Dockerfile CHANGED
@@ -1,19 +1,11 @@
1
  # 使用 superiortech/opencv4nodejs 镜像作为基础镜像
2
  FROM superiortech/opencv4nodejs
3
 
4
- RUN apt install nodejs
5
- RUN apt install npm -y
6
  # 设置工作目录
7
  WORKDIR /app
8
 
9
  # 安装依赖
10
- RUN npm update
11
- RUN npm install axios
12
- RUN npm install express
13
- RUN npm install fluent-ffmpeg
14
- RUN npm install fs
15
- RUN npm install jimp
16
- RUN npm install sharp
17
 
18
  # 复制应用程序代码到工作目录
19
  COPY . .
 
1
  # 使用 superiortech/opencv4nodejs 镜像作为基础镜像
2
  FROM superiortech/opencv4nodejs
3
 
 
 
4
  # 设置工作目录
5
  WORKDIR /app
6
 
7
  # 安装依赖
8
+ RUN npm install
 
 
 
 
 
 
9
 
10
  # 复制应用程序代码到工作目录
11
  COPY . .