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
|
FROM alpine
|
||||||
MAINTAINER kev <noreply@easypi.info>
|
MAINTAINER EasyPi Software Foundation
|
||||||
|
|
||||||
RUN set -xe \
|
RUN set -xe \
|
||||||
&& apk add --no-cache bash \
|
&& apk add --no-cache build-base \
|
||||||
build-base \
|
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
|
curl \
|
||||||
nodejs \
|
nodejs \
|
||||||
python \
|
python3 \
|
||||||
python-dev \
|
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 \
|
&& npm install -g --unsafe-perm node-red \
|
||||||
node-red-admin \
|
node-red-admin \
|
||||||
node-red-dashboard \
|
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 \
|
&& apk del build-base \
|
||||||
python-dev \
|
python3-dev \
|
||||||
&& rm -rf /tmp/npm-*
|
&& rm -rf /tmp/npm-*
|
||||||
|
|
||||||
WORKDIR /root/.node-red
|
WORKDIR /root/.node-red
|
||||||
|
@ -19,9 +19,9 @@ RUN set -xe \
|
|||||||
node-red-admin \
|
node-red-admin \
|
||||||
node-red-dashboard \
|
node-red-dashboard \
|
||||||
&& cd /usr/lib/node_modules/node-red/nodes/core/hardware \
|
&& 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/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/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/36-rpi-gpio.js > 36-rpi-gpio.js \
|
||||||
&& apk del build-base \
|
&& apk del build-base \
|
||||||
python3-dev \
|
python3-dev \
|
||||||
&& rm -rf /tmp/npm-*
|
&& rm -rf /tmp/npm-*
|
||||||
|
@ -4,4 +4,6 @@ node-red:
|
|||||||
- "1880:1880"
|
- "1880:1880"
|
||||||
volumes:
|
volumes:
|
||||||
- ./data:/root/.node-red
|
- ./data:/root/.node-red
|
||||||
|
- /dev/input:/dev/input
|
||||||
|
privileged: yes
|
||||||
restart: always
|
restart: always
|
||||||
|
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
Loading…
Reference in New Issue
Block a user