# Dockerfile.rpm ARG DISTRO=oraclelinux ARG RELEASE=7 FROM ${DISTRO}:${RELEASE} ARG DISTRO ARG RELEASE RUN if [ ${RELEASE} -le 7 ] ; then MGR=yum ; else MGR=dnf ; fi && \ ${MGR} install -y \ rpm-build \ make \ oracle-epel-release-el${RELEASE} \ && ${MGR} clean all RUN echo -e "#!/bin/bash\nmake actually-package-${DISTRO}-${RELEASE}" > /init.sh \ && chmod 755 /init.sh WORKDIR /src CMD ["/bin/bash", "/init.sh"]