Update Dockerfile
Browse files- Dockerfile +1 -5
Dockerfile
CHANGED
|
@@ -1,13 +1,9 @@
|
|
| 1 |
# 使用官方的 Node.js 镜像作为基础
|
| 2 |
FROM node:latest
|
| 3 |
|
| 4 |
-
#
|
| 5 |
USER root
|
| 6 |
RUN apt-get update
|
| 7 |
-
RUN apt-get install -y iputils-ping
|
| 8 |
-
RUN apt-get install -y net-tools
|
| 9 |
-
RUN setcap cap_net_raw+ep /bin/ping
|
| 10 |
-
|
| 11 |
RUN npm cache clean --force
|
| 12 |
|
| 13 |
# 安装 Node-RED
|
|
|
|
| 1 |
# 使用官方的 Node.js 镜像作为基础
|
| 2 |
FROM node:latest
|
| 3 |
|
| 4 |
+
# 更新、清除缓存
|
| 5 |
USER root
|
| 6 |
RUN apt-get update
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
RUN npm cache clean --force
|
| 8 |
|
| 9 |
# 安装 Node-RED
|