Update Dockerfile

This commit is contained in:
Joshua Schnabel
2020-04-29 00:18:15 +02:00
committed by GitHub
parent 7c6fa45118
commit a99e783825

View File

@ -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 && \ RUN chown -R node-red:node-red /usr/src/node-red && \
/tmp/install_devtools.sh && \ /tmp/install_devtools.sh && \
rm -r /tmp/* 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 && \ RUN apt-get clean autoclean && \
apt-get autoremove --yes && \ apt-get autoremove --yes && \