Dockerfile: Simplify the package installation
This commit is contained in:
parent
913e3ea5e7
commit
b103571d77
1 changed files with 1 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue