Update Dockerfile
Browse files- Dockerfile +6 -1
Dockerfile
CHANGED
|
@@ -12,7 +12,12 @@ RUN pacman -Sy --noconfirm
|
|
| 12 |
RUN pacman -S nodejs npm cmake opencv icu gcc --noconfirm
|
| 13 |
|
| 14 |
# 安装Node.js依赖
|
| 15 |
-
RUN npm install express
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
|
| 17 |
# 暴露端口
|
| 18 |
EXPOSE 7860
|
|
|
|
| 12 |
RUN pacman -S nodejs npm cmake opencv icu gcc --noconfirm
|
| 13 |
|
| 14 |
# 安装Node.js依赖
|
| 15 |
+
RUN npm install express phin npmlog jimp axios sharp
|
| 16 |
+
|
| 17 |
+
# 安装 opencv4nodejs,并禁用自动构建
|
| 18 |
+
RUN npm install opencv4nodejs
|
| 19 |
+
RUN npm install opencv-build
|
| 20 |
+
RUN npm run opencv4nodejs:custombuild
|
| 21 |
|
| 22 |
# 暴露端口
|
| 23 |
EXPOSE 7860
|