trying nvm to get node v12

This commit is contained in:
Naveenraj M
2020-03-29 01:42:57 +05:30
parent e2b932d4bb
commit 2c83983714

View File

@ -1,11 +1,11 @@
# Using CentOS 7 with Node 12 as base image to support rpmbuild # Using CentOS 7 with Node 12 as base image to support rpmbuild
FROM centos/nodejs-12-centos7 FROM centos:7
# Copying all contents of rpmbuild repo inside container # Copying all contents of rpmbuild repo inside container
COPY . . COPY . .
# Installing tools needed for rpmbuild # Installing tools needed for rpmbuild
RUN sudo yum install -y gcc rpm-build rpm-devel rpmlint make bash coreutils rpmdevtools RUN yum install -y gcc rpm-build rpm-devel rpmlint make bash coreutils rpmdevtools
# LOG: check contents # LOG: check contents
RUN pwd && ls -la RUN pwd && ls -la
@ -14,6 +14,9 @@ RUN pwd && ls -la
RUN rpmdev-setuptree 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 nvm install v12.16.1
RUN npm install --production RUN npm install --production
# All remaining logic goes inside main.js , # All remaining logic goes inside main.js ,