mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-08-24 03:30:04 +00:00
fix(ignore): Force rebuild of @serialport/bindings-cpp in Docker (#25202)
This commit is contained in:
+3
-3
@@ -22,9 +22,9 @@ COPY package.json pnpm-lock.yaml ./
|
||||
RUN apk add make gcc g++ python3 linux-headers npm && \
|
||||
npm install -g pnpm && \
|
||||
pnpm install --frozen-lockfile --no-optional && \
|
||||
# Serialport requires to be re-build, otherwise starts fails
|
||||
# See e.g. https://github.com/Koenkk/zigbee2mqtt/issues/25092
|
||||
pnpm rebuild
|
||||
# serialport has outdated prebuilds that appear to fail on some archs, force build on target platform
|
||||
rm -rf `find ./node_modules/.pnpm/ -wholename "*/@serialport/bindings-cpp/prebuilds" -type d` && \
|
||||
pnpm rebuild @serialport/bindings-cpp
|
||||
|
||||
# Release
|
||||
FROM base AS release
|
||||
|
||||
Reference in New Issue
Block a user