-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDockerfile
38 lines (30 loc) · 1.55 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
FROM nodered/node-red
WORKDIR /usr/src/node-red
COPY --chown=node-red package.json selfhealing/package.json
COPY --chown=node-red package-lock.json selfhealing/package-lock.json
COPY --chown=node-red debounce selfhealing/debounce
COPY --chown=node-red compensate selfhealing/compensate
COPY --chown=node-red flow-control selfhealing/flow-control
COPY --chown=node-red network-aware selfhealing/network-aware
COPY --chown=node-red redundancy selfhealing/redundancy
COPY --chown=node-red replication-voter selfhealing/replication-voter
COPY --chown=node-red threshold-check selfhealing/threshold-check
COPY --chown=node-red kalman-noise-filter selfhealing/kalman-noise-filter
COPY --chown=node-red heartbeat selfhealing/heartbeat
COPY --chown=node-red balancing selfhealing/balancing
COPY --chown=node-red readings-watcher selfhealing/readings-watcher
COPY --chown=node-red checkpoint selfhealing/checkpoint
COPY --chown=node-red heartbeat selfhealing/heartbeat
COPY --chown=node-red utils selfhealing/utils
COPY --chown=node-red resource-monitor selfhealing/resource-monitor
COPY --chown=node-red timing-check selfhealing/timing-check
COPY --chown=node-red device-registry selfhealing/device-registry
COPY --chown=node-red action-audit selfhealing/action-audit
COPY --chown=node-red http-aware selfhealing/http-aware
USER node-red
RUN npm install selfhealing
RUN npm install node-red-contrib-n2n
RUN npm install node-red-node-serialport
VOLUME ["/data"]
# Start the container normally
ENTRYPOINT ["npm", "start", "--", "--userDir", "/data"]