Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +1 -5
Dockerfile
CHANGED
|
@@ -4,11 +4,7 @@ FROM node:latest
|
|
| 4 |
# 系统安装ping
|
| 5 |
USER root
|
| 6 |
RUN apt-get update
|
| 7 |
-
RUN apt-get install -y snap
|
| 8 |
|
| 9 |
-
RUN apt-get install -y iputils-ping
|
| 10 |
-
RUN chmod +s /bin/ping
|
| 11 |
-
RUN sudo snap connect node-red:network-observe
|
| 12 |
# 清理缓存
|
| 13 |
RUN npm cache clean --force
|
| 14 |
|
|
@@ -22,7 +18,7 @@ COPY settings.js /usr/src/node-red/settings.js
|
|
| 22 |
COPY flows.json /usr/src/node-red/flows.json
|
| 23 |
|
| 24 |
# 安装节点
|
| 25 |
-
RUN npm install -g node-red-node-email
|
| 26 |
|
| 27 |
# 启动 Node-RED
|
| 28 |
CMD ["node-red", "--userDir", "/usr/src/node-red"]
|
|
|
|
| 4 |
# 系统安装ping
|
| 5 |
USER root
|
| 6 |
RUN apt-get update
|
|
|
|
| 7 |
|
|
|
|
|
|
|
|
|
|
| 8 |
# 清理缓存
|
| 9 |
RUN npm cache clean --force
|
| 10 |
|
|
|
|
| 18 |
COPY flows.json /usr/src/node-red/flows.json
|
| 19 |
|
| 20 |
# 安装节点
|
| 21 |
+
RUN npm install -g node-red-node-email
|
| 22 |
|
| 23 |
# 启动 Node-RED
|
| 24 |
CMD ["node-red", "--userDir", "/usr/src/node-red"]
|