Skip to content

Commit ccd3b32

Browse files
committed
pythonGH-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.
1 parent 96e1901 commit ccd3b32

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.devcontainer/Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ ENV WASMTIME_HOME=/opt/wasmtime
99
ENV WASMTIME_VERSION=7.0.0
1010
ENV WASMTIME_CPU_ARCH=x86_64
1111

12-
RUN dnf -y --nodocs install git clang xz python3-blurb dnf-plugins-core && \
13-
dnf -y --nodocs builddep python3 && \
12+
RUN dnf -y --nodocs --setopt=install_weak_deps=False install /usr/bin/{blurb,clang,curl,git,ln,tar,xz} 'dnf-command(builddep)' && \
13+
dnf -y --nodocs --setopt=install_weak_deps=False builddep python3 && \
1414
dnf -y clean all
1515

1616
RUN mkdir ${WASI_SDK_PATH} && \

0 commit comments

Comments
 (0)