Skip to content

Commit

Permalink
fix(ignore): Force rebuild of @serialport/bindings-cpp in Docker (#25202
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Nerivec authored Dec 15, 2024
1 parent e234f42 commit 0b62aef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0b62aef

Please sign in to comment.