FROM almalinux:9 as installer RUN dnf install -y yum-utils RUN yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo RUN dnf install \ --installroot /fakeroot \ --releasever 9 \ --setopt install_weak_deps=false \ --nodocs -y \ git docker-ce-cli docker-buildx-plugin \ && dnf clean all --installroot /fakeroot FROM scratch COPY --from=installer /fakeroot /