Use RockyLinux to build RPM package

This commit is contained in:
Frédéric Guillot 2023-06-23 20:45:58 -07:00
parent 98167487aa
commit df472254d3

View file

@ -4,9 +4,7 @@ ADD . /go/src/app
WORKDIR /go/src/app WORKDIR /go/src/app
RUN make miniflux RUN make miniflux
FROM centos:8 FROM rockylinux:8
RUN dnf --disablerepo '*' --enablerepo=extras swap centos-linux-repos centos-stream-repos -y
RUN dnf distro-sync -y
RUN dnf install -y rpm-build RUN dnf install -y rpm-build
RUN mkdir -p /root/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS} RUN mkdir -p /root/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
RUN echo "%_topdir /root/rpmbuild" >> .rpmmacros RUN echo "%_topdir /root/rpmbuild" >> .rpmmacros