Fix RPM Dockerfile packager

This commit is contained in:
Frédéric Guillot 2022-05-27 20:47:14 -07:00
parent f546fc3060
commit 79df37ac1e

View file

@ -3,7 +3,9 @@ ADD . /go/src/app
WORKDIR /go/src/app
RUN make miniflux
FROM centos:latest
FROM centos: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 mkdir -p /root/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
RUN echo "%_topdir /root/rpmbuild" >> .rpmmacros