Update Dockerfile
This commit is contained in:
@ -53,6 +53,16 @@ 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 && \
|
||||
rm -rf /var/lib/{apt,dpkg,cache,log}/
|
||||
|
||||
Reference in New Issue
Block a user