docker-docker/Dockerfile
Zhao Zuohong 1551822765
All checks were successful
ci/woodpecker/manual/woodpecker Pipeline was successful
first commit
2023-12-12 16:30:48 +08:00

15 lines
415 B
Docker

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 /