-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
50 lines (44 loc) · 1.18 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#
# Dockerfile for node-red
#
FROM alpine:3.20
MAINTAINER EasyPi Software Foundation
ARG NODERED_VERSION
ARG NODERED_DASHBOARD_VERSION
RUN set -xe \
&& apk add --no-cache \
bash \
build-base \
ca-certificates \
curl \
dumb-init \
gcompat \
nodejs \
npm \
python3 \
python3-dev \
&& ln -sf /usr/bin/python3 /usr/bin/python \
&& ln -sf /lib /lib64 \
&& rm -vf /usr/lib/python3.12/EXTERNALLY-MANAGED \
&& python -m ensurepip \
&& pip3 install --no-cache-dir rpi.gpio \
&& npm install -g --unsafe-perm \
node-red@${NODERED_VERSION} \
node-red-dashboard@${NODERED_DASHBOARD_VERSION} \
node-red-node-email \
node-red-node-feedparser \
node-red-node-pi-gpio \
node-red-node-sentiment \
node-red-node-twitter \
node-red-node-ui-list \
node-red-node-ui-table \
&& mkdir -p /usr/share/doc/python-rpi.gpio \
&& apk del \
build-base \
python3-dev \
&& rm -rf /tmp/npm-*
WORKDIR /data
VOLUME /data
EXPOSE 1880
ENTRYPOINT ["dumb-init", "--"]
CMD ["node-red", "--userDir", "/data", "--flowFile", "flows.json"]