55# #
66
77FROM docker.io/library/debian:12.11-slim@sha256:e5865e6858dacc255bead044a7f2d0ad8c362433cfaa5acefb670c1edf54dfef AS download
8- SHELL ["/bin/bash" , "-u" , "-e" , "-o" , "pipefail" , "-c" ]
98WORKDIR /tmp/docker
109RUN --mount=type=cache,target=/var/lib/apt/lists,sharing=locked \
1110 --mount=type=cache,target=/var/cache \
@@ -25,7 +24,21 @@ RUN ARCH=$(dpkg --print-architecture) && curl --fail --silent --parallel --remot
2524# #
2625
2726FROM docker.io/library/debian:12.11-slim@sha256:e5865e6858dacc255bead044a7f2d0ad8c362433cfaa5acefb670c1edf54dfef AS dockerd
28- SHELL ["/bin/bash" , "-u" , "-e" , "-o" , "pipefail" , "-c" ]
27+ RUN --mount=type=bind,from=download,source=/tmp/docker,target=/tmp/docker \
28+ --mount=type=cache,target=/var/lib/apt/lists,sharing=locked \
29+ --mount=type=cache,target=/var/cache \
30+ --mount=type=tmpfs,target=/var/log \
31+ apt-get -qq update && \
32+ apt-get -qq install --yes --no-install-recommends /tmp/docker/containerd*.deb /tmp/docker/docker-ce-cli* /tmp/docker/docker-ce_*.deb ca-certificates && \
33+ rm -rf /var/lib/dpkg/*-old /var/lib/dpkg/status
34+ COPY --chmod=555 entrypoint-rootless.sh /usr/bin/entrypoint.sh
35+ ENTRYPOINT ["/usr/bin/entrypoint.sh" ]
36+
37+ # #
38+ # # Docker Daemon (rootless)
39+ # #
40+
41+ FROM docker.io/library/debian:12.11-slim@sha256:e5865e6858dacc255bead044a7f2d0ad8c362433cfaa5acefb670c1edf54dfef AS dockerd-rootless
2942RUN --mount=type=bind,from=download,source=/tmp/docker,target=/tmp/docker \
3043 --mount=type=cache,target=/var/lib/apt/lists,sharing=locked \
3144 --mount=type=cache,target=/var/cache \
@@ -46,7 +59,6 @@ USER 1000
4659# #
4760
4861FROM docker.io/library/debian:12.11-slim@sha256:e5865e6858dacc255bead044a7f2d0ad8c362433cfaa5acefb670c1edf54dfef AS cli-base
49- SHELL ["/bin/bash" , "-u" , "-e" , "-o" , "pipefail" , "-c" ]
5062RUN --mount=type=bind,from=download,source=/tmp/docker,target=/tmp/docker \
5163 --mount=type=cache,target=/var/lib/apt/lists,sharing=locked \
5264 --mount=type=cache,target=/var/cache \
0 commit comments