pgmon/docker/Dockerfile-oraclelinux

24 lines
444 B
Plaintext
Raw Normal View History

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