Skip to content

Commit

Permalink
Migrate yarn to npm (#621)
Browse files Browse the repository at this point in the history
  • Loading branch information
frenck authored Dec 9, 2023
1 parent cc641f1 commit 950d2ae
Showing 1 changed file with 13 additions and 24 deletions.
37 changes: 13 additions & 24 deletions zwave-js-ui/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,41 +26,30 @@ RUN \
nginx=1.24.0-r14 \
nodejs=20.10.0-r1 \
\
&& npm install --global yarn@2.4.3 \
\
&& curl -J -L -o /tmp/zwave-js-ui.tar.gz \
"https://github.com/zwave-js/zwave-js-ui/archive/${ZWAVE_JS_UI_VERSION}.tar.gz" \
&& tar zxvf \
/tmp/zwave-js-ui.tar.gz \
--strip 1 -C /opt \
\
&& cd /opt \
&& yarn install --immutable \
&& yarn run build:server \
&& yarn run build:ui \
&& npm_config_build_from_source=true \
yarn rebuild @serialport/bindings-cpp \
&& yarn remove \
$(jq -r '.devDependencies | keys | join(" ")' package.json) \
&& yarn cache clean \
&& npm ci \
&& npm run build:server \
&& npm run build:ui \
&& npm rebuild --build-from-source @serialport/bindings-cpp \
&& npm prune --omit=dev \
&& npm cache clean --force \
\
&& npm uninstall -g yarn \
&& apk del --no-cache --purge .build-dependencies \
&& find /opt -mindepth 1 -maxdepth 1 \
! -name "node_modules" \
! -name "snippets" \
! -name "package.json" \
! -name "server" \
! -name "dist" \
-exec rm -rf {} + \
&& rm -f -r \
/etc/nginx \
/opt/build \
/opt/index.html \
/opt/package.sh \
/opt/src \
/opt/static \
/opt/stylesheets \
/opt/.[!.]* \
/opt/*.md \
/opt/nodemon.json \
/opt/kustomization.yaml \
/opt/kubernetes \
/opt/docker \
/opt/docs \
/root/.cache \
/root/.config \
/root/.npmrc \
Expand Down

0 comments on commit 950d2ae

Please sign in to comment.