From ccd3b326ac8802feb17d990f5f4f37653f83090f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Wed, 5 Apr 2023 17:22:45 +0200 Subject: [PATCH] GH-102973: Slim down Fedora packages in the dev container dnf install /usr/bin/... and dnf-command(builddep) to get exactly what we use. That way, we abstract away (possibly artificial) package names. This also fetches a slimmer version of git, called git-core, which avoids a dependency on Perl. However, Perl is eventually unfortunately still fetched in the next dnf command. This declares more used dependencies in the spirit of "explicit is better than implicit". Also set install_weak_deps=False to avoid installing unneeded weak dependencies. --- .devcontainer/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index ce8967337b02f9..efbdcd402cdf67 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -9,8 +9,8 @@ ENV WASMTIME_HOME=/opt/wasmtime ENV WASMTIME_VERSION=7.0.0 ENV WASMTIME_CPU_ARCH=x86_64 -RUN dnf -y --nodocs install git clang xz python3-blurb dnf-plugins-core && \ - dnf -y --nodocs builddep python3 && \ +RUN dnf -y --nodocs --setopt=install_weak_deps=False install /usr/bin/{blurb,clang,curl,git,ln,tar,xz} 'dnf-command(builddep)' && \ + dnf -y --nodocs --setopt=install_weak_deps=False builddep python3 && \ dnf -y clean all RUN mkdir ${WASI_SDK_PATH} && \