Skip to content

Commit 5b02731

Browse files
committed
Force serialport rebuild Koenkk/zigbee2mqtt#25464
1 parent 4442739 commit 5b02731

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

common/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,9 @@ RUN apk add --no-cache --virtual .buildtools npm make gcc g++ linux-headers udev
3333
pnpm run build && \
3434
rm -rf node_modules && \
3535
pnpm install --frozen-lockfile --no-optional --unsafe-perm --prod && \
36-
# Serialport needs to be rebuild for Alpine https://serialport.io/docs/9.x.x/guide-installation#alpine-linux
37-
pnpm rebuild
36+
# serialport has outdated prebuilds that appear to fail on some archs, force build on target platform
37+
rm -rf `find ./node_modules/.pnpm/ -wholename "*/@serialport/bindings-cpp/prebuilds" -type d` && \
38+
pnpm rebuild @serialport/bindings-cpp
3839

3940
# Release
4041
FROM base as release

0 commit comments

Comments
 (0)