]> xenbits.xensource.com Git - people/sstabellini/xen-unstable.git/.git/commitdiff
automation: try to keep openSUSE Leap image a little smaller
authorDario Faggioli <dfaggioli@suse.com>
Wed, 31 Jul 2019 16:58:40 +0000 (18:58 +0200)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Sat, 3 Aug 2019 14:55:39 +0000 (15:55 +0100)
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 <dfaggioli@suse.com>
Acked-by: Doug Goldstein <cardoe@cardoe.com>
automation/build/suse/opensuse-leap.dockerfile

index a627c9a1f1fb9988e5c83506f59465d9d8031bbd..b68d5b0efba7a301409e38d33b983a114e4c4f7e 100644 (file)
@@ -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