mirror of
https://github.com/naveenrajm7/rpmbuild.git
synced 2025-07-12 12:13:51 +00:00
activate nvm
This commit is contained in:
@ -15,8 +15,14 @@ RUN rpmdev-setuptree
|
|||||||
|
|
||||||
# Setting up node to run our JS file
|
# Setting up node to run our JS file
|
||||||
RUN curl https://raw.githubusercontent.com/creationix/nvm/v0.13.1/install.sh | bash
|
RUN curl https://raw.githubusercontent.com/creationix/nvm/v0.13.1/install.sh | bash
|
||||||
|
|
||||||
|
# Source bash_profile to activate nvm
|
||||||
|
RUN source ~/.bash_profile
|
||||||
|
|
||||||
|
# Install Node v12 from nvm
|
||||||
RUN nvm install v12.16.1
|
RUN nvm install v12.16.1
|
||||||
|
|
||||||
|
# Install all dependecies to execute main.js
|
||||||
RUN npm install --production
|
RUN npm install --production
|
||||||
|
|
||||||
# All remaining logic goes inside main.js ,
|
# All remaining logic goes inside main.js ,
|
||||||
|
Reference in New Issue
Block a user