mirror of
https://github.com/naveenrajm7/rpmbuild.git
synced 2025-07-12 04:13:50 +00:00
trying nvm to get node v12
This commit is contained in:
@ -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 ,
|
||||
|
Reference in New Issue
Block a user