Skip to content

Commit fd7709c

Browse files
Koenkkbenjamin-dcs
authored andcommitted
Switch to pnpm (zigbee2mqtt#645)
* Switch to pnpm * u
1 parent 9f5a5f5 commit fd7709c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

common/Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ RUN apk add --no-cache socat tini nodejs eudev
1010
FROM base as dependencies_and_build
1111

1212
RUN 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
4040
FROM base as release

0 commit comments

Comments
 (0)