Rpm: automate rpm building with build-rpm

This commit is contained in:
Dmitry Maksyoma
2021-02-11 21:50:14 +13:00
parent d658f2b8a3
commit b97633ca10
6 changed files with 41 additions and 9 deletions

View File

@@ -1,10 +1,12 @@
FROM centos:centos7
RUN yum install -y rpm* gpg* rng-tools
RUN yum install -y tree vim less
RUN yum install -y redhat-lsb-core
COPY centos/*.spec /tmp
RUN yum-builddep -y /tmp/*.spec
RUN useradd -m docker && echo "docker:docker" | chpasswd
COPY . /src
RUN chown -R docker:docker /src
USER docker