From 2c8398371470a61b57f3279f6f5fcab09e4fbbbf Mon Sep 17 00:00:00 2001 From: Naveenraj M Date: Sun, 29 Mar 2020 01:42:57 +0530 Subject: [PATCH] trying nvm to get node v12 --- Dockerfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9f170c2..e00c8fd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,11 @@ # 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 COPY . . # 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 RUN pwd && ls -la @@ -14,6 +14,9 @@ RUN pwd && ls -la RUN rpmdev-setuptree # 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 # All remaining logic goes inside main.js ,