activate nvm

This commit is contained in:
Naveenraj M
2020-03-29 01:50:34 +05:30
parent 2c83983714
commit 3b7946ffd2

View File

@ -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 ,