Update Dockerfile
Browse files- Dockerfile +6 -3
Dockerfile
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
# 使用适合你操作系统架构的Node.js镜像作为基础镜像
|
| 2 |
-
FROM
|
| 3 |
|
| 4 |
# 设置工作目录
|
| 5 |
WORKDIR /app
|
|
@@ -8,8 +8,11 @@ WORKDIR /app
|
|
| 8 |
COPY . .
|
| 9 |
|
| 10 |
# 安装OpenCV和Node.js相关依赖
|
| 11 |
-
run
|
| 12 |
-
RUN
|
|
|
|
|
|
|
|
|
|
| 13 |
|
| 14 |
# 安装Node.js依赖
|
| 15 |
RUN npm install express
|
|
|
|
| 1 |
# 使用适合你操作系统架构的Node.js镜像作为基础镜像
|
| 2 |
+
FROM archlinux:latest
|
| 3 |
|
| 4 |
# 设置工作目录
|
| 5 |
WORKDIR /app
|
|
|
|
| 8 |
COPY . .
|
| 9 |
|
| 10 |
# 安装OpenCV和Node.js相关依赖
|
| 11 |
+
run pacman update
|
| 12 |
+
RUN pacman -S nodejs -y
|
| 13 |
+
RUN pacman -S npm -y
|
| 14 |
+
RUN pacman -S cmake -y
|
| 15 |
+
RUN pacman -S opencv -y
|
| 16 |
|
| 17 |
# 安装Node.js依赖
|
| 18 |
RUN npm install express
|