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

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -8
Dockerfile CHANGED
@@ -1,16 +1,12 @@
1
- # 使用适合你操作系统架构的archlinux镜像作为基础镜像
2
- FROM archlinux:latest
3
 
4
  # 设置工作目录
5
  WORKDIR /app
6
 
7
- # 复制应用程序代码到工作目录
8
- COPY . .
9
-
10
  # 更新软件包数据库并安装需要的软件包
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 && \
 
1
+ FROM ubuntu:latest
 
2
 
3
  # 设置工作目录
4
  WORKDIR /app
5
 
 
 
 
6
  # 更新软件包数据库并安装需要的软件包
7
+ RUN apt-get update && \
8
+ apt-get install -y \
9
+ nodejs npm cmake libopencv-dev icu-dev gcc git build-essential && \
10
  npm install -g npm && \
11
  npm install express phin npmlog jimp axios sharp && \
12
  npm install opencv-build && \