2015-12-04 17:49:45 +08:00
|
|
|
#
|
2016-01-08 12:16:00 +08:00
|
|
|
# Dockerfile for node-red
|
2015-12-04 17:49:45 +08:00
|
|
|
#
|
|
|
|
|
2020-04-29 18:54:08 +08:00
|
|
|
FROM alpine:3
|
2017-04-30 21:58:14 +08:00
|
|
|
MAINTAINER EasyPi Software Foundation
|
2015-12-04 17:49:45 +08:00
|
|
|
|
2016-01-08 14:26:58 +08:00
|
|
|
RUN set -xe \
|
2019-10-09 02:40:13 +08:00
|
|
|
&& apk add --no-cache \
|
2019-10-06 18:02:50 +08:00
|
|
|
bash \
|
|
|
|
build-base \
|
|
|
|
ca-certificates \
|
|
|
|
curl \
|
|
|
|
nodejs \
|
|
|
|
nodejs-npm \
|
|
|
|
python3 \
|
|
|
|
python3-dev \
|
2017-04-30 21:58:14 +08:00
|
|
|
&& ln -sf /usr/bin/python3 /usr/bin/python \
|
|
|
|
&& pip3 install --no-cache-dir rpi.gpio \
|
2019-10-09 02:40:13 +08:00
|
|
|
&& npm install -g --unsafe-perm \
|
2019-10-06 18:02:50 +08:00
|
|
|
node-red \
|
|
|
|
node-red-admin \
|
|
|
|
node-red-dashboard \
|
|
|
|
node-red-node-email \
|
|
|
|
node-red-node-feedparser \
|
|
|
|
node-red-node-pi-gpio \
|
|
|
|
node-red-node-sentiment \
|
|
|
|
node-red-node-twitter \
|
2018-08-18 21:14:51 +08:00
|
|
|
&& mkdir -p /usr/share/doc/python-rpi.gpio \
|
2019-10-09 02:40:13 +08:00
|
|
|
&& apk del \
|
2019-10-06 18:02:50 +08:00
|
|
|
build-base \
|
|
|
|
python3-dev \
|
2016-07-08 03:28:46 +08:00
|
|
|
&& rm -rf /tmp/npm-*
|
2015-12-04 17:49:45 +08:00
|
|
|
|
2019-03-13 13:38:16 +08:00
|
|
|
WORKDIR /data
|
|
|
|
VOLUME /data
|
2016-07-08 03:28:46 +08:00
|
|
|
|
2015-12-04 17:56:19 +08:00
|
|
|
EXPOSE 1880
|
|
|
|
|
2019-03-16 16:23:57 +08:00
|
|
|
CMD ["node-red", "--userDir", "/data", "--flowFile", "flows.json"]
|