1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-01-26 05:27:31 +02:00
dockerfiles/node-red/arm/Dockerfile

36 lines
1.2 KiB
Docker
Raw Normal View History

2015-12-04 17:49:45 +08:00
#
2016-01-08 12:16:00 +08:00
# Dockerfile for node-red-arm
2015-12-04 17:49:45 +08:00
#
2016-07-08 03:28:46 +08:00
FROM easypi/alpine-arm
MAINTAINER EasyPi Software Foundation
2015-12-04 17:49:45 +08:00
2016-01-08 14:26:58 +08:00
RUN set -xe \
2017-04-26 17:35:14 +08:00
&& apk add --no-cache build-base \
2017-01-15 00:47:11 +08:00
ca-certificates \
curl \
nodejs \
2017-07-03 15:00:40 +08:00
nodejs-npm \
2017-04-26 17:35:14 +08:00
python3 \
python3-dev \
&& ln -sf /usr/bin/python3 /usr/bin/python \
&& pip3 install --no-cache-dir rpi.gpio \
six \
2016-12-04 21:30:03 +08:00
&& npm install -g --unsafe-perm node-red \
node-red-admin \
node-red-dashboard \
2017-04-26 17:35:14 +08:00
&& cd /usr/lib/node_modules/node-red/nodes/core/hardware \
2017-04-30 21:58:14 +08:00
&& 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 \
2015-12-04 17:49:45 +08:00
&& apk del build-base \
2017-04-26 17:35:14 +08:00
python3-dev \
2016-07-08 03:28:46 +08:00
&& rm -rf /tmp/npm-*
2015-12-04 17:49:45 +08:00
2015-12-18 00:06:44 +08:00
WORKDIR /root/.node-red
2015-12-04 17:56:19 +08:00
VOLUME /root/.node-red
2016-07-08 03:28:46 +08:00
2015-12-04 17:56:19 +08:00
EXPOSE 1880
2015-12-04 17:49:45 +08:00
CMD ["node-red"]