Skip to content

Commit

Permalink
Switch to pnpm (#645)
Browse files Browse the repository at this point in the history
* Switch to pnpm

* u
  • Loading branch information
Koenkk committed Dec 3, 2024
1 parent 421c04c commit 668dc0b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions common/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ RUN apk add --no-cache socat tini nodejs eudev
FROM base as dependencies_and_build

RUN apk add --no-cache --virtual .buildtools npm make gcc g++ linux-headers udev git python3 && \
npm install -g pnpm && \
if [ "${BUILD_VERSION}" = "edge" ]; \
then \
echo "Installing Edge version" && \
Expand All @@ -28,13 +29,12 @@ RUN apk add --no-cache --virtual .buildtools npm make gcc g++ linux-headers udev
fi; \
echo "Installed Zigbee2MQTT @ version $(cat /app/dist/.hash)" && \
cd /app && \
npm ci --no-audit --no-optional --no-update-notifier --unsafe-perm && \
npm run build && \
pnpm install --frozen-lockfile --no-optional --unsafe-perm && \
pnpm run build && \
rm -rf node_modules && \
npm ci --no-audit --no-optional --no-update-notifier --production --unsafe-perm && \
pnpm install --frozen-lockfile --no-optional --unsafe-perm --prod && \
# Serialport needs to be rebuild for Alpine https://serialport.io/docs/9.x.x/guide-installation#alpine-linux
npm rebuild --build-from-source && \
apk del .buildtools
pnpm rebuild

# Release
FROM base as release
Expand Down

0 comments on commit 668dc0b

Please sign in to comment.