mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
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 <dfaggioli@suse.com> Acked-by: Doug Goldstein <cardoe@cardoe.com>
This commit is contained in:
1 parent
c7a99eee3d
commit
d446dbb234
1 file changed
+3
-3
@@ -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
|
||||