From: Dario Faggioli Date: Wed, 31 Jul 2019 16:58:40 +0000 (+0200) Subject: automation: try to keep openSUSE Leap image a little smaller X-Git-Tag: archive/raspbian/4.14.0+80-gd101b417b7-1+rpi1^2~63^2~1784 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=d446dbb234c58119749507d53d2e8ebad4430d9d;p=xen.git automation: try to keep openSUSE Leap image a little smaller Using `--no-recommends` when updating or installing commands should prevent non strictly necessary packages to be installed. doing a `clean -a` after installing all the packages, should, in theory, free more space (as opposed to using just `clean`). Signed-off-by: Dario Faggioli Acked-by: Doug Goldstein --- diff --git a/automation/build/suse/opensuse-leap.dockerfile b/automation/build/suse/opensuse-leap.dockerfile index a627c9a1f1..b68d5b0efb 100644 --- a/automation/build/suse/opensuse-leap.dockerfile +++ b/automation/build/suse/opensuse-leap.dockerfile @@ -7,8 +7,8 @@ ENV USER root RUN mkdir /build WORKDIR /build -RUN zypper ref && zypper up -y -RUN zypper install -y \ +RUN zypper ref && zypper up -y --no-recommends +RUN zypper install -y --no-recommends \ acpica \ bc \ bin86 \ @@ -65,4 +65,4 @@ RUN zypper install -y \ xz-devel \ zlib-devel \ && \ - zypper clean + zypper clean -a