Closed areohbe closed 4 years ago
Thanks for reporting this issue.
It seems like sudo
is requiring you to enter a password which of course doesn't work in case of building an image from Dockerfile.
As workaround I would remove the line:
RUN sudo npm install -g --unsafe-perm node-red-admin
from the node-red
and node-red-test
Dockerfile.
The disadvantage is that the node-red-admin
utility will not be installed which is not needed for normal operation of node-red. You only need that utility if you want to create a hashed password for the node-red editor. Of course if you have the utility installed somewhere else you can use it there to create a hashed password.
I think following file describes how it can be solved: https://github.com/janvda/balena-kodi-etcetera/blob/master/node-red/Dockerfile
So remove the following line in the node-red
and node-red-test
Dockerfile
RUN sudo npm install -g --unsafe-perm node-red-admin
and add following line just after USER root
RUN npm install -g --unsafe-perm node-red-admin
I am receiving the following errors from
node-red
andnode-red-test
installation scripts