1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-28 09:08:50 +02:00

update node-red

This commit is contained in:
kev 2019-03-16 16:23:57 +08:00
parent 1642336ba6
commit 0edda17722
2 changed files with 4 additions and 8 deletions

View File

@ -18,7 +18,7 @@ RUN set -xe \
&& npm install -g --unsafe-perm node-red \
node-red-admin \
node-red-dashboard \
&& sed -i '1s/bash/sh/' /usr/lib/node_modules/node-red/nodes/core/hardware/nrgpio \
&& sed -i '1s/bash/sh/' /usr/lib/node_modules/node-red/node_modules/@node-red/nodes/core/hardware/nrgpio \
&& mkdir -p /usr/share/doc/python-rpi.gpio \
&& apk del build-base \
python3-dev \
@ -29,6 +29,4 @@ VOLUME /data
EXPOSE 1880
ENV FLOWS=flows.json
CMD ["node-red", "--userDir", "/data"]
CMD ["node-red", "--userDir", "/data", "--flowFile", "flows.json"]

View File

@ -18,7 +18,7 @@ RUN set -xe \
&& npm install -g --unsafe-perm node-red \
node-red-admin \
node-red-dashboard \
&& sed -i '1s/bash/sh/' /usr/lib/node_modules/node-red/nodes/core/hardware/nrgpio \
&& sed -i '1s/bash/sh/' /usr/lib/node_modules/node-red/node_modules/@node-red/nodes/core/hardware/nrgpio \
&& mkdir -p /usr/share/doc/python-rpi.gpio \
&& apk del build-base \
python3-dev \
@ -29,6 +29,4 @@ VOLUME /data
EXPOSE 1880
ENV FLOWS=flows.json
CMD ["node-red", "--userDir", "/data"]
CMD ["node-red", "--userDir", "/data", "--flowFile", "flows.json"]