File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -28,12 +28,12 @@ RUN apk add --no-cache --virtual .buildtools npm make gcc g++ linux-headers udev
28
28
fi; \
29
29
echo "Installed Zigbee2MQTT @ version $(cat /app/dist/.hash)" && \
30
30
cd /app && \
31
- npm install -g pnpm@$(sed -n 's/.*" packageManager": "pnpm@ \( [0-9.]* \) ".*/ \1 /p ' package.json) && \
31
+ npm install -g $(jq -r '. packageManager' package.json) && \
32
32
pnpm install --frozen-lockfile --no-optional --unsafe-perm && \
33
33
pnpm run build && \
34
34
rm -rf node_modules && \
35
35
pnpm install --frozen-lockfile --no-optional --unsafe-perm --prod && \
36
- # serialport has outdated prebuilds that appear to fail on some archs, force build on target platform
36
+ # force serialport to rebuild on current platform instead of using prebuilds
37
37
rm -rf `find ./node_modules/.pnpm/ -wholename "*/@serialport/bindings-cpp/prebuilds" -type d` && \
38
38
pnpm rebuild @serialport/bindings-cpp
39
39
You can’t perform that action at this time.
0 commit comments