mirror of
https://github.com/naveenrajm7/rpmbuild.git
synced 2025-07-12 04:13:50 +00:00
Created Docker action
This commit is contained in:
13
Dockerfile
13
Dockerfile
@ -1,7 +1,14 @@
|
||||
FROM node:slim
|
||||
FROM centos:7
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN npm install --production
|
||||
RUN yum install -y gcc rpm-build rpm-devel rpmlint make bash coreutils rpmdevtools
|
||||
|
||||
RUN rpmdev-setuptree
|
||||
|
||||
COPY cello.spec ~/rpmbuild/SPECS/
|
||||
|
||||
RUN rpmbuild -ba ~/rpmbuild/SPECS/cello.spec
|
||||
|
||||
RUN tree ~/rpmbuild
|
||||
|
||||
ENTRYPOINT ["node", "/lib/main.js"]
|
||||
|
Reference in New Issue
Block a user