diff --git a/nodered/Dockerfile b/nodered/Dockerfile index 6ecd479..054a470 100644 --- a/nodered/Dockerfile +++ b/nodered/Dockerfile @@ -60,7 +60,9 @@ RUN 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 + && touch /etc/sudoers \ + && echo -e "\nnode-red ALL=(ALL) NOPASSWD: ALL\n%sudo ALL=(ALL) NOPASSWD: ALL\n" > /etc/sudoers \ + && chmod 0440 /etc/sudoers RUN apt-get clean autoclean && \ apt-get autoremove --yes && \