ADD file:e3abcdba177145039cfef1ad882f9f81a612a24c9f044b19f713b95454d2e3f6 in / |
CMD ["/bin/sh"] |
RUN /bin/sh -c apk add --no-cache ca-certificates openssh-client # buildkit |
RUN /bin/sh -c [ -e /etc/nsswitch.conf ] && grep '^hosts: files dns' /etc/nsswitch.conf # buildkit |
RUN /bin/sh -c set -eux; addgroup -g 2375 -S docker # buildkit |
ENV DOCKER_VERSION=26.1.3 |
RUN /bin/sh -c set -eux; apkArch="$(apk --print-arch)"; case "$apkArch" in 'x86_64') url='https://download.docker.com/linux/static/stable/x86_64/docker-26.1.3.tgz'; ;; 'armhf') url='https://download.docker.com/linux/static/stable/armel/docker-26.1.3.tgz'; ;; 'armv7') url='https://download.docker.com/linux/static/stable/armhf/docker-26.1.3.tgz'; ;; 'aarch64') url='https://download.docker.com/linux/static/stable/aarch64/docker-26.1.3.tgz'; ;; *) echo >&2 "error: unsupported 'docker.tgz' architecture ($apkArch)"; exit 1 ;; esac; wget -O 'docker.tgz' "$url"; tar --extract --file docker.tgz --strip-components 1 --directory /usr/local/bin/ --no-same-owner 'docker/docker' ; rm docker.tgz; docker --version # buildkit |
ENV DOCKER_BUILDX_VERSION=0.14.1 |
RUN /bin/sh -c set -eux; apkArch="$(apk --print-arch)"; case "$apkArch" in 'x86_64') url='https://github.com/docker/buildx/releases/download/v0.14.1/buildx-v0.14.1.linux-amd64'; sha256='68e4f8895331ade982de8085a8c137b8af65f3ef95040b6c6113552243638508'; ;; 'armhf') url='https://github.com/docker/buildx/releases/download/v0.14.1/buildx-v0.14.1.linux-arm-v6'; sha256='afa9324a987d71891a8a55d33fa913e4464377c71e7cc84ba68a5d4c5e803f74'; ;; 'armv7') url='https://github.com/docker/buildx/releases/download/v0.14.1/buildx-v0.14.1.linux-arm-v7'; sha256='32f0f7d30e498c1461b97b2591e5ed348e69b6d864243a838db6d2e6dc08144d'; ;; 'aarch64') url='https://github.com/docker/buildx/releases/download/v0.14.1/buildx-v0.14.1.linux-arm64'; sha256='82e776e50a84293c160e8c89c125b7a86295c7aa7f30751d6a7c051c171762c1'; ;; 'ppc64le') url='https://github.com/docker/buildx/releases/download/v0.14.1/buildx-v0.14.1.linux-ppc64le'; sha256='64b62a17df3b0cd5bf88a1bc3f83cd50ebd56b403c2ebf4668b5d697fd324bc0'; ;; 'riscv64') url='https://github.com/docker/buildx/releases/download/v0.14.1/buildx-v0.14.1.linux-riscv64'; sha256='32042b4dba38724404a063ee9851ebea1c85b46ebbfb58e7350ece04975fdc9c'; ;; 's390x') url='https://github.com/docker/buildx/releases/download/v0.14.1/buildx-v0.14.1.linux-s390x'; sha256='c273b1801cdb2c78079f9c33ecec266d5104973254e4e152d0205f14d7bf7bfc'; ;; *) echo >&2 "warning: unsupported 'docker-buildx' architecture ($apkArch); skipping"; exit 0 ;; esac; wget -O 'docker-buildx' "$url"; echo "$sha256 *"'docker-buildx' | sha256sum -c -; plugin='/usr/local/libexec/docker/cli-plugins/docker-buildx'; mkdir -p "$(dirname "$plugin")"; mv -vT 'docker-buildx' "$plugin"; chmod +x "$plugin"; docker buildx version # buildkit |
ENV DOCKER_COMPOSE_VERSION=2.27.0 |
RUN /bin/sh -c set -eux; apkArch="$(apk --print-arch)"; case "$apkArch" in 'x86_64') url='https://github.com/docker/compose/releases/download/v2.27.0/docker-compose-linux-x86_64'; sha256='f3ba3bf1e4ab18e96c2d36526a075a02a78fb5f8e80d3e3ca9c5bf256d81d0a0'; ;; 'armhf') url='https://github.com/docker/compose/releases/download/v2.27.0/docker-compose-linux-armv6'; sha256='ee467093d138f9c4d189b774552ef86ba253107bd91226b28f0c54edf62fe949'; ;; 'armv7') url='https://github.com/docker/compose/releases/download/v2.27.0/docker-compose-linux-armv7'; sha256='8461b4d4a58eaaf04c4f482f0dabe57db9ef63229311a9583c6548b417f33c76'; ;; 'aarch64') url='https://github.com/docker/compose/releases/download/v2.27.0/docker-compose-linux-aarch64'; sha256='37a1c197fef5fda2a3df2d5ae0d7762ad2a00e30946ad06d4ad9fa8cef16d9e7'; ;; 'ppc64le') url='https://github.com/docker/compose/releases/download/v2.27.0/docker-compose-linux-ppc64le'; sha256='faed2dd8f0568922dadf1a8fa155898d5be1feaa67568f2aa730a594ba6a44ec'; ;; 'riscv64') url='https://github.com/docker/compose/releases/download/v2.27.0/docker-compose-linux-riscv64'; sha256='71a09bd1980505a5f194cfab5df53bba55e493edf246f3ebb28cbfef8caf7715'; ;; 's390x') url='https://github.com/docker/compose/releases/download/v2.27.0/docker-compose-linux-s390x'; sha256='d38522261b481d7f20da7f80af67824afe2a1b54dd19215690febb0c49ad932d'; ;; *) echo >&2 "warning: unsupported 'docker-compose' architecture ($apkArch); skipping"; exit 0 ;; esac; wget -O 'docker-compose' "$url"; echo "$sha256 *"'docker-compose' | sha256sum -c -; plugin='/usr/local/libexec/docker/cli-plugins/docker-compose'; mkdir -p "$(dirname "$plugin")"; mv -vT 'docker-compose' "$plugin"; chmod +x "$plugin"; ln -sv "$plugin" /usr/local/bin/; docker-compose --version; docker compose version # buildkit |
COPY modprobe.sh /usr/local/bin/modprobe # buildkit |
COPY docker-entrypoint.sh /usr/local/bin/ # buildkit |
ENV DOCKER_TLS_CERTDIR=/certs |
RUN /bin/sh -c mkdir /certs /certs/client && chmod 1777 /certs /certs/client # buildkit |
ENTRYPOINT ["docker-entrypoint.sh"] |
CMD ["sh"] |
RUN /bin/sh -c set -eux; apk add --no-cache btrfs-progs e2fsprogs e2fsprogs-extra git ip6tables iptables openssl pigz shadow-uidmap xfsprogs xz zfs ; # buildkit |
RUN /bin/sh -c set -eux; apk add --no-cache iptables-legacy; mkdir -p /usr/local/sbin/.iptables-legacy; for f in iptables iptables-save iptables-restore ip6tables ip6tables-save ip6tables-restore ; do b="/sbin/${f/tables/tables-legacy}"; "$b" --version; ln -svT "$b" "/usr/local/sbin/.iptables-legacy/$f"; done; export PATH="/usr/local/sbin/.iptables-legacy:$PATH"; iptables --version | grep legacy # buildkit |
RUN /bin/sh -c set -eux; addgroup -S dockremap; adduser -S -G dockremap dockremap; echo 'dockremap:165536:65536' >> /etc/subuid; echo 'dockremap:165536:65536' >> /etc/subgid # buildkit |
RUN /bin/sh -c set -eux; apkArch="$(apk --print-arch)"; case "$apkArch" in 'x86_64') url='https://download.docker.com/linux/static/stable/x86_64/docker-26.1.3.tgz'; ;; 'armhf') url='https://download.docker.com/linux/static/stable/armel/docker-26.1.3.tgz'; ;; 'armv7') url='https://download.docker.com/linux/static/stable/armhf/docker-26.1.3.tgz'; ;; 'aarch64') url='https://download.docker.com/linux/static/stable/aarch64/docker-26.1.3.tgz'; ;; *) echo >&2 "error: unsupported 'docker.tgz' architecture ($apkArch)"; exit 1 ;; esac; wget -O 'docker.tgz' "$url"; tar --extract --file docker.tgz --strip-components 1 --directory /usr/local/bin/ --no-same-owner --exclude 'docker/docker' ; rm docker.tgz; dockerd --version; containerd --version; ctr --version; runc --version # buildkit |
ENV DIND_COMMIT=65cfcc28ab37cb75e1560e4b4738719c07c6618e |
RUN /bin/sh -c set -eux; wget -O /usr/local/bin/dind "https://raw.githubusercontent.com/docker/docker/${DIND_COMMIT}/hack/dind"; chmod +x /usr/local/bin/dind # buildkit |
COPY dockerd-entrypoint.sh /usr/local/bin/ # buildkit |
VOLUME [/var/lib/docker] |
EXPOSE map[2375/tcp:{} 2376/tcp:{}] |
ENTRYPOINT ["dockerd-entrypoint.sh"] |
CMD [] |
COPY /usr/bin/python3 /usr/bin/python3 # buildkit |
COPY /usr/lib/python3.*/ /usr/lib/python3.*/ # buildkit |
COPY /usr/bin/pip3 /usr/bin/pip3 # buildkit |
COPY /lib/stack-fix.so /lib/stack-fix.so # buildkit |
COPY /bin/pnpm /bin/pnpm # buildkit |
COPY # buildkit |
RUN /bin/sh -c apk update && apk add --no-cache git openssl openssl-dev ca-certificates bash curl make gcc g++ python3 python3-dev py3-pip linux-headers paxctl libgcc libstdc++ gnupg nodejs-current npm krb5-libs rust docker-cli libffi-dev libc-dev docker-compose libc6-compat alpine-sdk && update-ca-certificates # buildkit |
ENV PYTHONUNBUFFERED=1 |
ENV PNPM_HOME=/root/.local/share/pnpm |
ENV PATH=/root/.local/share/pnpm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
ENV LD_PRELOAD=/lib/stack-fix.so |
RUN /bin/sh -c node -v && npm -v && pnpm -v # buildkit |
RUN /bin/sh -c pnpm config set unsafe-perm true # buildkit |