File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -6,12 +6,20 @@ ARG INSTALL_ROOT=/rootfs
6
6
FROM opensuse/leap:${LEAP_VERSION} as builder
7
7
ARG CACHE_ZYPPER=/tmp/cache/zypper
8
8
ARG INSTALL_ROOT
9
- # /etc/os-release provides $VERSION_ID
9
+
10
+
11
+ # /etc/os-release provides $VERSION_ID below.
12
+ # We don't need the openh264.repo and the non-oss repos, just costs build time (repo caches).
13
+ # Also we need to remove the util_linux RPM to /really/ make sure busybox-util-linux gets installed.
14
+ # And we need to run zypper update, see all PR #2424.
10
15
RUN source /etc/os-release \
16
+ && rm -f /etc/zypp/repos.d/repo-openh264.repo /etc/zypp/repos.d/repo-non-oss.repo \
11
17
&& export ZYPPER_OPTIONS=( --releasever "${VERSION_ID}" --installroot "${INSTALL_ROOT}" --cache-dir "${CACHE_ZYPPER}" ) \
12
18
&& zypper "${ZYPPER_OPTIONS[@]}" --gpg-auto-import-keys refresh \
19
+ && rpm -e util-linux --nodeps \
13
20
&& zypper "${ZYPPER_OPTIONS[@]}" --non-interactive install --download-in-advance --no-recommends \
14
21
bash procps grep gawk sed coreutils busybox-util-linux busybox-vi ldns libidn2-0 socat openssl curl \
22
+ && zypper up -y \
15
23
&& zypper "${ZYPPER_OPTIONS[@]}" clean --all
16
24
# # Cleanup (reclaim approx 13 MiB):
17
25
# None of this content should be relevant to the container:
You can’t perform that action at this time.
0 commit comments