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:
parent
2a64285a86
commit
8e1ff7743f
@ -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 |
Loading…
Reference in New Issue
Block a user