File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ RUN apk add --no-cache socat tini nodejs eudev
1010FROM base as dependencies_and_build
1111
1212RUN apk add --no-cache --virtual .buildtools npm make gcc g++ linux-headers udev git python3 && \
13+ npm install -g pnpm && \
1314 if [ "${BUILD_VERSION}" = "edge" ]; \
1415 then \
1516 echo "Installing Edge version" && \
@@ -28,13 +29,12 @@ RUN apk add --no-cache --virtual .buildtools npm make gcc g++ linux-headers udev
2829 fi; \
2930 echo "Installed Zigbee2MQTT @ version $(cat /app/dist/.hash)" && \
3031 cd /app && \
31- npm ci --no-audit --no-optional --no-update-notifier --unsafe-perm && \
32- npm run build && \
32+ pnpm install --frozen-lockfile --no-optional --unsafe-perm && \
33+ pnpm run build && \
3334 rm -rf node_modules && \
34- npm ci --no-audit --no-optional --no-update-notifier --production --unsafe-perm && \
35+ pnpm install --frozen-lockfile --no-optional --unsafe-perm --prod && \
3536 # Serialport needs to be rebuild for Alpine https://serialport.io/docs/9.x.x/guide-installation#alpine-linux
36- npm rebuild --build-from-source && \
37- apk del .buildtools
37+ pnpm rebuild
3838
3939# Release
4040FROM base as release
You can’t perform that action at this time.
0 commit comments