mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-04-21 12:07:00 +02:00
node-red-arm support gpio
This commit is contained in:
parent
6da5e1411c
commit
6e8d68d589
@ -7,10 +7,14 @@ MAINTAINER EasyPi Software Foundation
|
|||||||
|
|
||||||
RUN set -xe \
|
RUN set -xe \
|
||||||
&& apk add --no-cache bash \
|
&& apk add --no-cache bash \
|
||||||
|
curl \
|
||||||
build-base \
|
build-base \
|
||||||
nodejs \
|
nodejs \
|
||||||
python \
|
python \
|
||||||
python-dev \
|
python-dev \
|
||||||
|
sudo \
|
||||||
|
&& curl https://bootstrap.pypa.io/get-pip.py | python \
|
||||||
|
&& pip install rpi.gpio \
|
||||||
&& npm install -g node-red \
|
&& npm install -g node-red \
|
||||||
node-red-admin \
|
node-red-admin \
|
||||||
&& apk del build-base \
|
&& apk del build-base \
|
||||||
|
@ -4,4 +4,5 @@ node-red:
|
|||||||
- "1880:1880"
|
- "1880:1880"
|
||||||
volumes:
|
volumes:
|
||||||
- ./data:/root/.node-red
|
- ./data:/root/.node-red
|
||||||
|
privileged: yes
|
||||||
restart: always
|
restart: always
|
||||||
|
Loading…
x
Reference in New Issue
Block a user