mirror of
https://github.com/naveenrajm7/rpmbuild.git
synced 2025-07-11 20:04:42 +00:00
19 lines
625 B
Docker
19 lines
625 B
Docker
# 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 python git nodejs yum-utils
|
|
|
|
# Install dependecies and build main.js
|
|
RUN npm install --production \
|
|
&& npm run-script build
|
|
|
|
# All remaining logic goes inside main.js ,
|
|
# where we have access to both tools of this container and
|
|
# contents of git repo at /github/workspace
|
|
ENTRYPOINT ["node", "/lib/main.js"]
|