1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-24 07:48:38 +00:00

update node-red

This commit is contained in:
kev 2017-04-30 21:58:14 +08:00
parent 2a64285a86
commit 8e1ff7743f
8 changed files with 18 additions and 9 deletions

@ -3,20 +3,27 @@
#
FROM alpine
MAINTAINER kev <noreply@easypi.info>
MAINTAINER EasyPi Software Foundation
RUN set -xe \
&& apk add --no-cache bash \
build-base \
&& apk add --no-cache build-base \
ca-certificates \
curl \
nodejs \
python \
python-dev \
python3 \
python3-dev \
&& ln -sf /usr/bin/python3 /usr/bin/python \
&& pip3 install --no-cache-dir rpi.gpio \
six \
&& npm install -g --unsafe-perm node-red \
node-red-admin \
node-red-dashboard \
&& cd /usr/lib/node_modules/node-red/nodes/core/hardware \
&& curl -sSL https://github.com/vimagick/dockerfiles/raw/master/node-red/patch/nrgpio > nrgpio \
&& curl -sSL https://github.com/vimagick/dockerfiles/raw/master/node-red/patch/nrgpio.py > nrgpio.py \
&& curl -sSL https://github.com/vimagick/dockerfiles/raw/master/node-red/patch/36-rpi-gpio.js > 36-rpi-gpio.js \
&& apk del build-base \
python-dev \
python3-dev \
&& rm -rf /tmp/npm-*
WORKDIR /root/.node-red

@ -19,9 +19,9 @@ RUN set -xe \
node-red-admin \
node-red-dashboard \
&& cd /usr/lib/node_modules/node-red/nodes/core/hardware \
&& curl -sSL https://github.com/vimagick/dockerfiles/raw/master/node-red/arm/patch/nrgpio > nrgpio \
&& curl -sSL https://github.com/vimagick/dockerfiles/raw/master/node-red/arm/patch/nrgpio.py > nrgpio.py \
&& curl -sSL https://github.com/vimagick/dockerfiles/raw/master/node-red/arm/patch/36-rpi-gpio.js > 36-rpi-gpio.js \
&& curl -sSL https://github.com/vimagick/dockerfiles/raw/master/node-red/patch/nrgpio > nrgpio \
&& curl -sSL https://github.com/vimagick/dockerfiles/raw/master/node-red/patch/nrgpio.py > nrgpio.py \
&& curl -sSL https://github.com/vimagick/dockerfiles/raw/master/node-red/patch/36-rpi-gpio.js > 36-rpi-gpio.js \
&& apk del build-base \
python3-dev \
&& rm -rf /tmp/npm-*

@ -4,4 +4,6 @@ node-red:
- "1880:1880"
volumes:
- ./data:/root/.node-red
- /dev/input:/dev/input
privileged: yes
restart: always

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 22 KiB