Skip to content

Commit 7499694

Browse files
authored
chore: cleanup Dockerfile (#793)
1 parent 2871fa1 commit 7499694

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

common/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)