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