Revert "chore: cleanup Dockerfile (#28166)"

This reverts commit e8cec3542f.
This commit is contained in:
Koen Kanters
2025-08-04 21:40:19 +02:00
parent b72abd675f
commit b41e3e781e
+2 -2
View File
@@ -18,10 +18,10 @@ COPY package.json pnpm-lock.yaml ./
# saves storage as this node_modules/ is being copied straight to the release stage later.
RUN --mount=type=cache,id=pnpm-store,target=/tmp/pnpm-store \
apk add --no-cache make gcc g++ python3 linux-headers npm && \
npm install -g $(jq -r '.packageManager' package.json) && \
npm install -g pnpm@$(sed -n 's/.*"packageManager": "pnpm@\([0-9.]*\)".*/\1/p' package.json) && \
pnpm config set store-dir /tmp/pnpm-store && \
pnpm install --frozen-lockfile --prod --no-optional && \
# force serialport to rebuild on current platform instead of using prebuilds
# 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