2020-10-18 19:12:00 -04:00
|
|
|
FROM golang:1 AS build
|
|
|
|
ADD . /go/src/app
|
|
|
|
WORKDIR /go/src/app
|
2021-09-25 18:52:32 -04:00
|
|
|
RUN make miniflux
|
2020-10-18 19:12:00 -04:00
|
|
|
|
2022-05-27 23:47:14 -04:00
|
|
|
FROM centos:8
|
|
|
|
RUN dnf --disablerepo '*' --enablerepo=extras swap centos-linux-repos centos-stream-repos -y
|
|
|
|
RUN dnf distro-sync -y
|
2020-10-18 19:12:00 -04:00
|
|
|
RUN dnf install -y rpm-build
|
|
|
|
RUN mkdir -p /root/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
|
|
|
|
RUN echo "%_topdir /root/rpmbuild" >> .rpmmacros
|
|
|
|
COPY --from=build /go/src/app/miniflux /root/rpmbuild/SOURCES/miniflux
|
|
|
|
COPY --from=build /go/src/app/LICENSE /root/rpmbuild/SOURCES/
|
|
|
|
COPY --from=build /go/src/app/ChangeLog /root/rpmbuild/SOURCES/
|
|
|
|
COPY --from=build /go/src/app/miniflux.1 /root/rpmbuild/SOURCES/
|
|
|
|
COPY --from=build /go/src/app/packaging/systemd/miniflux.service /root/rpmbuild/SOURCES/
|
|
|
|
COPY --from=build /go/src/app/packaging/miniflux.conf /root/rpmbuild/SOURCES/
|
|
|
|
COPY --from=build /go/src/app/packaging/rpm/miniflux.spec /root/rpmbuild/SPECS/miniflux.spec
|