Skip to content

Commit

Permalink
Install nodejs from 3rd party repo
Browse files Browse the repository at this point in the history
  • Loading branch information
tobias-klein committed Nov 10, 2024
1 parent 53559a4 commit 3e63f43
Showing 1 changed file with 8 additions and 14 deletions.
22 changes: 8 additions & 14 deletions docker/OpenSuseLeap_Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,17 @@

FROM opensuse/leap:15.2

RUN zypper --gpg-auto-import-keys refresh
RUN zypper rr 2
RUN zypper rr 1
RUN zypper clean --all
RUN zypper ref

RUN zypper addrepo https://download.opensuse.org/repositories/home:Marco-GmbH:nodejs:nodejs18/openSUSE_Leap_15.2_Update/home:Marco-GmbH:nodejs:nodejs18.repo
RUN zypper --gpg-auto-import-keys refresh -f

RUN zypper install -y sudo gcc-c++ make vim git subversion cmake rpm-build unzip curl wget
RUN zypper install -y libcurl-devel libicu-devel sqlite3-devel zlib-devel

RUN wget https://cdn.opensuse.org/update/leap/15.2/oss_debug/x86_64/gcc10-obj-c++-debuginfo-10.2.1+git583-lp152.4.1.x86_64.rpm
RUN rpm -i gcc10-obj-c++-debuginfo-10.2.1+git583-lp152.4.1.x86_64.rpm

RUN wget https://nodejs.org/dist/v18.18.0/node-v18.18.0.tar.gz
RUN tar xvfz node-v18.18.0.tar.gz
RUN cd node-v18.18.0 && ./configure
RUN cd node-v18.18.0 && make
RUN cd node-v18.18.0 && make install

# Install node 14.17.5
#RUN npm install -g n
#RUN n 14.17.5
RUN zypper install -y --force-resolution nodejs18 npm

RUN npm install -g [email protected]

Expand Down

0 comments on commit 3e63f43

Please sign in to comment.