2020-10-19 01:12:00 +02:00
|
|
|
FROM golang:1 AS build
|
2023-06-23 06:15:00 +02:00
|
|
|
ENV CGO_ENABLED=0
|
2020-10-19 01:12:00 +02:00
|
|
|
ADD . /go/src/app
|
|
|
|
WORKDIR /go/src/app
|
2021-09-26 00:52:32 +02:00
|
|
|
RUN make miniflux
|
2020-10-19 01:12:00 +02:00
|
|
|
|
2023-06-24 05:45:58 +02:00
|
|
|
FROM rockylinux:8
|
2020-10-19 01:12:00 +02: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
|