22 lines
334 B
Plaintext
22 lines
334 B
Plaintext
|
|
# Dockerfile.rpm
|
||
|
|
|
||
|
|
ARG DISTRO=amazonlinux
|
||
|
|
ARG RELEASE=2023
|
||
|
|
|
||
|
|
FROM ${DISTRO}:${RELEASE}
|
||
|
|
|
||
|
|
ARG DISTRO
|
||
|
|
ARG RELEASE
|
||
|
|
|
||
|
|
RUN dnf install -y \
|
||
|
|
rpm-build \
|
||
|
|
make \
|
||
|
|
&& dnf 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"]
|