Update Dockerfile
Browse files- Dockerfile +4 -1
Dockerfile
CHANGED
|
@@ -1,6 +1,9 @@
|
|
| 1 |
# 使用官方的 Node.js 镜像作为基础
|
| 2 |
FROM node:latest
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
| 4 |
# 安装 Node-RED
|
| 5 |
RUN npm install -g --unsafe-perm node-red
|
| 6 |
|
|
|
|
| 1 |
# 使用官方的 Node.js 镜像作为基础
|
| 2 |
FROM node:latest
|
| 3 |
+
|
| 4 |
+
# 清理缓存
|
| 5 |
+
RUN npm cache clean --force
|
| 6 |
+
|
| 7 |
# 安装 Node-RED
|
| 8 |
RUN npm install -g --unsafe-perm node-red
|
| 9 |
|