23 lines
361 B
Plaintext
23 lines
361 B
Plaintext
# Dockerfile.rpm
|
|
|
|
ARG DISTRO=oraclelinux
|
|
ARG RELEASE=7
|
|
|
|
FROM ${DISTRO}:${RELEASE}
|
|
|
|
ARG DISTRO
|
|
ARG RELEASE
|
|
|
|
RUN yum install -y \
|
|
rpm-build \
|
|
make \
|
|
oracle-epel-release-el7 \
|
|
&& yum 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"]
|