2
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2026-01-04 12:05:02 +01:00

update node-red-arm

This commit is contained in:
kev
2017-04-26 17:35:14 +08:00
parent c05e1ead36
commit 3af6c8c05f
7 changed files with 608 additions and 98 deletions

View File

@@ -6,21 +6,24 @@ FROM easypi/alpine-arm
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 \
sudo \
&& curl https://bootstrap.pypa.io/get-pip.py | python \
&& pip install rpi.gpio \
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/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 \
&& apk del build-base \
python-dev \
python3-dev \
&& rm -rf /tmp/npm-*
WORKDIR /root/.node-red