Update Dockerfile

This commit is contained in:
Joshua Schnabel
2020-04-29 00:38:38 +02:00
committed by GitHub
parent 398170b69b
commit 009eb35a66

View File

@ -61,7 +61,7 @@ RUN addgroup node-red sudo
RUN cat /dev/null > /etc/sudoers \ RUN cat /dev/null > /etc/sudoers \
&& echo -e "Set disable_coredump false\n" > /etc/sudo.conf \ && echo -e "Set disable_coredump false\n" > /etc/sudo.conf \
&& touch /etc/sudoers \ && touch /etc/sudoers \
&& echo -e "\nnode-red ALL=(ALL) NOPASSWD: ALL\n%sudo ALL=(ALL) NOPASSWD: ALL\n" > /etc/sudoers \ && echo "node-red ALL=(ALL) NOPASSWD: ALL\n%sudo ALL=(ALL) NOPASSWD: ALL\n" > /etc/sudoers \
&& chmod 0440 /etc/sudoers && chmod 0440 /etc/sudoers
RUN apt-get clean autoclean && \ RUN apt-get clean autoclean && \