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
2828 fi; \
2929 echo "Installed Zigbee2MQTT @ version $(cat /app/dist/.hash)" && \
3030 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) && \
3232 pnpm install --frozen-lockfile --no-optional --unsafe-perm && \
3333 pnpm run build && \
3434 rm -rf node_modules && \
3535 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
3737 rm -rf `find ./node_modules/.pnpm/ -wholename "*/@serialport/bindings-cpp/prebuilds" -type d` && \
3838 pnpm rebuild @serialport/bindings-cpp
3939
You can’t perform that action at this time.
0 commit comments