diff --git a/nodered/Dockerfile b/nodered/Dockerfile index a16d3da..f15820d 100644 --- a/nodered/Dockerfile +++ b/nodered/Dockerfile @@ -52,6 +52,16 @@ COPY --from=build /usr/src/node-red/prod_node_modules ./node_modules RUN chown -R node-red:node-red /usr/src/node-red && \ /tmp/install_devtools.sh && \ rm -r /tmp/* + +RUN RUN set -ex \ + && apt-get install -y wget sudo net-tools bluez arp-scan \ + && rm -rf /var/lib/apt/lists/* + +RUN addgroup sudo && addgroup node-red sudo + +RUN cat /dev/null > /etc/sudoers \ + && echo -e "Set disable_coredump false\n" > /etc/sudo.conf \ + && echo -e "node-red ALL=(ALL) NOPASSWD: ALL\n%sudo ALL=(ALL) NOPASSWD: ALL\n" > /etc/sudoers RUN apt-get clean autoclean && \ apt-get autoremove --yes && \