mirror of
https://github.com/naveenrajm7/rpmbuild.git
synced 2025-07-11 20:04:42 +00:00
13
Dockerfile
13
Dockerfile
@ -1,19 +1,12 @@
|
||||
# Using CentOS 7 as base image to support rpmbuild (packages will be Dist el7)
|
||||
FROM centos:7
|
||||
# Using almalinux:latest as base image for this container
|
||||
FROM almalinux:latest
|
||||
|
||||
# Copying all contents of rpmbuild repo inside container
|
||||
COPY . .
|
||||
|
||||
# Installing tools needed for rpmbuild ,
|
||||
# depends on BuildRequires field in specfile, (TODO: take as input & install)
|
||||
RUN yum install -y rpm-build rpmdevtools gcc make coreutils python git
|
||||
|
||||
# Setting up node to run our JS file
|
||||
# Download Node Linux binary
|
||||
RUN curl -O https://nodejs.org/dist/v12.16.1/node-v12.16.1-linux-x64.tar.xz
|
||||
|
||||
# Extract and install
|
||||
RUN tar --strip-components 1 -xvf node-v* -C /usr/local
|
||||
RUN yum install -y rpm-build rpmdevtools gcc make python git nodejs yum-utils
|
||||
|
||||
# Install dependecies and build main.js
|
||||
RUN npm install --production \
|
||||
|
Reference in New Issue
Block a user