我想把mqttx命令行打包进node-red的docker

群里有高手给回复了,自己重新安装node-red,可以实现新的docker里可以运行mqttx

FROM node:latest
MAINTAINER zxpstart@126.com
RUN mkdir /usr/src/node-red
WORKDIR /usr/src/node-red
RUN npm install -g --unsafe-perm node-red
RUN wget https://www.emqx.com/zh/downloads/MQTTX/v1.9.7/mqttx-cli-linux-x64 &&
mv mqttx-cli-linux-x64 /usr/bin/mqttx &&
chmod +x /usr/bin/mqttx
EXPOSE 1880
ENTRYPOINT node-red