From badeef2f5a66788fb06217b47e2aabc9d5285877 Mon Sep 17 00:00:00 2001 From: Prabhu Subramanian Date: Wed, 15 Jan 2025 18:28:09 +0000 Subject: [PATCH] Update npm install step in docker Signed-off-by: Prabhu Subramanian --- ci/Dockerfile | 3 +-- ci/Dockerfile.sle | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/ci/Dockerfile b/ci/Dockerfile index c9014f2..add7893 100644 --- a/ci/Dockerfile +++ b/ci/Dockerfile @@ -100,8 +100,7 @@ COPY ./target/atom.zip . COPY ./wrapper . RUN unzip -q atom.zip \ && composer update --no-progress --prefer-dist --ignore-platform-reqs \ - && cd /opt/nodejs && npm install --only=production && cd /opt \ - && npm install -g /opt/nodejs \ + && cd /opt/nodejs && npm install --only=production && npm install -g . && cd /opt \ && rm -rf atom.zip composer.json composer.lock composer-setup.php /usr/local/bin/atom \ && /opt/bin/atom --help \ && which astgen \ diff --git a/ci/Dockerfile.sle b/ci/Dockerfile.sle index aa4f2d4..9a9e7b6 100644 --- a/ci/Dockerfile.sle +++ b/ci/Dockerfile.sle @@ -85,8 +85,7 @@ COPY ./wrapper . RUN unzip -q atom.zip \ && source /root/.nvm/nvm.sh \ && composer update --no-progress --prefer-dist --ignore-platform-reqs \ - && cd /opt/nodejs && npm install --only=production && cd /opt \ - && npm install -g /opt/nodejs \ + && cd /opt/nodejs && npm install --only=production && npm install -g . && cd /opt \ && rm -rf atom.zip composer.json composer.lock composer-setup.php /usr/local/bin/atom \ && java --version \ && /opt/bin/atom --help \