File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33# ######################################################################################################################
44FROM lansible/nexe:4.0.0-beta.19 as builder
55
6- ENV VERSION=v5.7.3
6+ ENV VERSION=v6.1.0
77
88# Add unprivileged user
99RUN echo "zwavejs2mqtt:x:1000:1000:zwavejs2mqtt:/:" > /etc_passwd
@@ -27,7 +27,7 @@ RUN git apply stateless.patch
2727# Run build to make all html files
2828RUN CORES=$(grep -c '^processor' /proc/cpuinfo); \
2929 export MAKEFLAGS="-j$((CORES+1)) -l${CORES}" ; \
30- npm install && \
30+ npm install --legacy-peer-deps && \
3131 npm run build && \
3232 npm prune --production
3333
@@ -97,6 +97,11 @@ COPY --from=builder \
9797 /zwavejs2mqtt/node_modules/@zwave-js/config/config/ \
9898 /zwavejs2mqtt/node_modules/@zwave-js/config/config/
9999
100+ # After troubleshooting this somehow can't be packed
101+ COPY --from=builder \
102+ /zwavejs2mqtt/node_modules/engine.io-parser/ \
103+ /zwavejs2mqtt/node_modules/engine.io-parser/
104+
100105# Create default data directory
101106# Will fail at runtime due missing the mkdir binary
102107COPY --from=builder --chown=zwavejs2mqtt:0 /config /config
Original file line number Diff line number Diff line change @@ -40,11 +40,11 @@ index a288733..246d8e1 100644
4040
4141 export default store
4242diff --git a/lib/jsonStore.ts b/lib/jsonStore.ts
43- index 5c182ca..a406609 100644
43+ index f1e84cd..bc32b63 100644
4444--- a/lib/jsonStore.ts
4545+++ b/lib/jsonStore.ts
4646@@ -39,7 +39,7 @@ export class StorageHelper {
47- let err: { code: string }
47+ let err: { code: string } | undefined
4848 let data: any
4949 try {
5050- data = await readFile(utils.joinPath(storeDir, config.file))
You can’t perform that action at this time.
0 commit comments