-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
55 lines (37 loc) · 1.2 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
51
52
53
54
55
FROM nodered/node-red-docker:v8
USER root
WORKDIR /usr/src/node-red
RUN apt-get update
# ---- USB ----
# Add nodes
RUN npm i -S node-red-node-serialport
# ---- ZWAVE ----
# Install latest OpenZwave library
RUN apt-get -y install libudev-dev
RUN mkdir -pv /usr/src/
RUN git clone https://github.com/OpenZWave/open-zwave.git /usr/src/open-zwave
RUN cd /usr/src/open-zwave && make && make install
ENV LD_LIBRARY_PATH /usr/local/lib64
RUN ldconfig /usr/local/lib64
# Add openzwave nodes
RUN npm i -S node-red-contrib-openzwave
# ---- ZIGATE ----
RUN npm i -S @neonox31/node-red-contrib-zigate
# ---- ADD JS LIBRARIES ----
RUN npm i -S moment
RUN npm i -S moment-ferie-fr
# ---- ADD CUSTOM NODES ----
RUN npm i -S node-red-node-pushover
RUN npm i -S node-red-contrib-broadlink
RUN npm i -S node-red-contrib-scheduler
RUN npm i -S node-red-contrib-advanced-ping
RUN npm i -S node-red-contrib-repeat
RUN npm i -S @neonox31/node-red-contrib-ghome
RUN npm i -S node-red-node-google
RUN npm i -S node-red-node-forecastio
# --------------------------------
# User configuration directory volume
EXPOSE 1880
# Environment variable holding file path for flows configuration
ENV FLOWS=flows.json
CMD npm start -- --userDir /data