luoyutianyang commited on
Commit
745a8f2
·
verified ·
1 Parent(s): 4edf367

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -13
Dockerfile CHANGED
@@ -7,21 +7,12 @@ WORKDIR /app
7
  # 复制应用程序代码到工作目录
8
  COPY . .
9
 
10
- RUN pacman -Sy
11
- RUN pacman -S nodejs --noconfirm
12
- RUN pacman -S npm --noconfirm
13
- RUN pacman -S cmake --noconfirm
14
- RUN pacman -S opencv --noconfirm
15
 
16
  # 安装Node.js依赖
17
- RUN npm install express
18
- RUN npm install are-we-there-yet
19
- RUN npm install gauge
20
- RUN npm install npmlog
21
- RUN npm install opencv4nodejs
22
- RUN npm install jimp
23
- RUN npm install axios
24
- RUN npm install sharp
25
 
26
  # 暴露端口
27
  EXPOSE 7860
 
7
  # 复制应用程序代码到工作目录
8
  COPY . .
9
 
10
+ # 更新软件包数据库并安装需要的软件包
11
+ RUN pacman -Sy --noconfirm
12
+ RUN pacman -S nodejs npm cmake opencv icu --noconfirm
 
 
13
 
14
  # 安装Node.js依赖
15
+ RUN npm install express are-we-there-yet gauge npmlog opencv4nodejs jimp axios sharp
 
 
 
 
 
 
 
16
 
17
  # 暴露端口
18
  EXPOSE 7860