Improve packaging
This commit is contained in:
22
docker/Dockerfile-oraclelinux
Normal file
22
docker/Dockerfile-oraclelinux
Normal file
@@ -0,0 +1,22 @@
|
||||
# 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"]
|
||||
Reference in New Issue
Block a user