Dockerfile: Simplify the package installation

This commit is contained in:
Debarshi Ray 2018-09-26 12:07:13 +02:00
parent 913e3ea5e7
commit b103571d77

View file

@ -14,9 +14,7 @@ RUN sed -i '/tsflags=nodocs/d' /etc/dnf/dnf.conf
RUN dnf -y swap coreutils-single coreutils-full RUN dnf -y swap coreutils-single coreutils-full
COPY extra-packages / COPY extra-packages /
RUN packages=; while read -r package; do packages="$packages $package"; done \ RUN dnf -y install $(<extra-packages)
<extra-packages; \
dnf -y install $packages
RUN rm /extra-packages RUN rm /extra-packages
CMD /bin/sh CMD /bin/sh