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
10
10
FROM base as dependencies_and_build
11
11
12
12
RUN apk add --no-cache --virtual .buildtools npm make gcc g++ linux-headers udev git python3 && \
13
+ npm install -g pnpm && \
13
14
if [ "${BUILD_VERSION}" = "edge" ]; \
14
15
then \
15
16
echo "Installing Edge version" && \
@@ -28,13 +29,12 @@ RUN apk add --no-cache --virtual .buildtools npm make gcc g++ linux-headers udev
28
29
fi; \
29
30
echo "Installed Zigbee2MQTT @ version $(cat /app/dist/.hash)" && \
30
31
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 && \
33
34
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 && \
35
36
# 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
38
38
39
39
# Release
40
40
FROM base as release
You can’t perform that action at this time.
0 commit comments