mirror of
https://github.com/naveenrajm7/rpmbuild.git
synced 2025-07-12 20:23:50 +00:00
using Dockerfile use to install tools
This commit is contained in:
@ -7,12 +7,6 @@ COPY . .
|
|||||||
# Installing tools needed for rpmbuild
|
# Installing tools needed for rpmbuild
|
||||||
RUN yum install -y rpm-build rpmdevtools
|
RUN yum install -y rpm-build rpmdevtools
|
||||||
|
|
||||||
# LOG: check contents
|
|
||||||
RUN pwd && ls -la && echo $HOME
|
|
||||||
|
|
||||||
# Creting rpmbuild directory tree
|
|
||||||
RUN rpmdev-setuptree
|
|
||||||
|
|
||||||
# Setting up node to run our JS file
|
# Setting up node to run our JS file
|
||||||
# Download Node Linux binary
|
# Download Node Linux binary
|
||||||
RUN curl -O https://nodejs.org/dist/v12.16.1/node-v12.16.1-linux-x64.tar.xz
|
RUN curl -O https://nodejs.org/dist/v12.16.1/node-v12.16.1-linux-x64.tar.xz
|
||||||
@ -20,9 +14,6 @@ RUN curl -O https://nodejs.org/dist/v12.16.1/node-v12.16.1-linux-x64.tar.xz
|
|||||||
# Extract and install
|
# Extract and install
|
||||||
RUN tar --strip-components 1 -xvf node-v* -C /usr/local
|
RUN tar --strip-components 1 -xvf node-v* -C /usr/local
|
||||||
|
|
||||||
# Verify node version
|
|
||||||
RUN node --version
|
|
||||||
|
|
||||||
# Install all dependecies to execute main.js
|
# Install all dependecies to execute main.js
|
||||||
RUN npm install --production
|
RUN npm install --production
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user