1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-25 02:04:06 +02: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

View File

@ -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

View File

@ -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-*

View File

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

View File

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 22 KiB