Import Geant4 11.2.1 source tree

This commit is contained in:
Gabriele Cosmo
2024-02-16 14:58:45 +01:00
parent 860a2b92bf
commit dda54bbdcf
331 changed files with 48457 additions and 50699 deletions
+21
View File
@@ -0,0 +1,21 @@
# First stage, build Geant4 RPMs from spec file
ARG version=latest
FROM fedora:$version
WORKDIR /root
RUN dnf install -y dnf-plugins-core gdb rpmdevtools \
&& rpmdev-setuptree
COPY geant4.spec geant4.spec
RUN spectool -g -R geant4.spec
RUN dnf builddep -y geant4.spec
RUN rpmbuild -bb geant4.spec
# Second stage, build Geant4 container image
FROM fedora:$version
COPY --from=0 /root/rpmbuild/RPMS/* /tmp/
RUN yum install -y /tmp/*.rpm && rm -rf /tmp/* && yum autoremove -y