Warning, /geant4/packaging/rpm/Dockerfile.fedora is written in an unsupported language. File is not indexed.
0001 # First stage, build Geant4 RPMs from spec file
0002 ARG version=latest
0003 FROM fedora:$version
0004
0005 WORKDIR /root
0006
0007 RUN dnf install -y dnf-plugins-core gdb rpmdevtools \
0008 && rpmdev-setuptree
0009
0010 COPY geant4.spec geant4.spec
0011
0012 RUN spectool -g -R geant4.spec
0013 RUN dnf builddep -y geant4.spec
0014 RUN rpmbuild -bb geant4.spec
0015
0016 # Second stage, build Geant4 container image
0017 FROM fedora:$version
0018
0019 COPY --from=0 /root/rpmbuild/RPMS/* /tmp/
0020
0021 RUN yum install -y /tmp/*.rpm && rm -rf /tmp/* && yum autoremove -y